Skip to content
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

Allow for custom options to pg_dumpall and custom formats #164

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FinweVI
Copy link

@FinweVI FinweVI commented Apr 30, 2024

Hello,

this PR allow for passing custom options to pg_dumpall by using the $POSTGRES_HOST_OPTS variable.
My use case is that I use a managed DB, and the default "admin" user need to connect on a different default DB than postgres or template1.
pg_dumpall support this with the -l option, but I can't pass it as an argument with the current code.

I also added a $POSTGRES_FORMAT variable, defaulting to plain (p), same as before.
I prefer to use -Fc or the custom PostGres format whenever I can, with pg_dump.

Please let me know if everything looks OK!

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.

1 participant