Skip to content

fix to work on default postgres db#16

Open
def324 wants to merge 1 commit into
mixxorz:mainfrom
def324:fix-postgres-db-v1
Open

fix to work on default postgres db#16
def324 wants to merge 1 commit into
mixxorz:mainfrom
def324:fix-postgres-db-v1

Conversation

@def324

@def324 def324 commented Feb 11, 2023

Copy link
Copy Markdown

Fix for #15

Comment thread dslr/runner.py
user=settings.db.username,
password=settings.db.password,
dbname="postgres",
dbname="template1",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make more sense to use template0 here? That database should never be modified by users, but template1 is intended to be modified by users to provide per-cluster defaults for new databases. It seems like it might be a valid use case to use dslr to snapshot your template1 DB while experimenting with changes to it locally, whereas that should never be the case for template0.

Relevant docs: https://www.postgresql.org/docs/current/manage-ag-templatedbs.html

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review @bcdickinson . I agree. I can accept this PR if we can change it to use template0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants