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

Extensions don't get dumped #110

Open
nigelatdas opened this issue Aug 24, 2022 · 3 comments
Open

Extensions don't get dumped #110

nigelatdas opened this issue Aug 24, 2022 · 3 comments

Comments

@nigelatdas
Copy link
Contributor

Hiya,

Due to us specifying the schema ... and hence passing '-n' to pg_dump it doesn't include extensions
(see https://dba.stackexchange.com/questions/297985/pg-dump-is-not-including-extensions)

For my use this means the generated script won't run.
My backup is 60+Gb so editing the file is a pain.

I think we could add a flag to opt into including extensions for a schema in the dump file.

This would mean querying the schema to get the extensions and inject the code into the dump file somewhere near the top... after the schema have been created.

@nigelatdas
Copy link
Contributor Author

I'll investigate

@junkert
Copy link
Collaborator

junkert commented Mar 21, 2023

Hi @nigelatdas, did you happen to get any of this working? I was going to start looking into this as we should definitely dump the extensions into the dump file as well to simplify loading.

@nigelatdas
Copy link
Contributor Author

nigelatdas commented Mar 29, 2023 via email

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

No branches or pull requests

2 participants