Skip to content

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!

@iloveitaly
Copy link
Collaborator

@FinweVI great changes! Can you resolve conflicts here so i can get it merged?

@FinweVI
Copy link
Author

FinweVI commented Aug 2, 2025

Should be good ;-)

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.

2 participants