-
-
Notifications
You must be signed in to change notification settings - Fork 885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically manage database when running scripts/test.sh #3389
Conversation
What is this cluster you are talking about? Basically you are initializing a new postgres database with files in the working directory? |
A database cluster is a directory with its own collection of databases and configuration (including authentication and users/roles). A server process uses 1 cluster. https://www.postgresql.org/docs/current/creating-cluster.html This cluster is stored in The |
Running this from the scripts directory will give you
|
I fixed it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it and works fine.
This removes the need to manually setup the database or start/stop the server. Also, having control over the whole cluster configuration prevents issues with user permissions and authentication.