-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
[11.x] Dump Postgres migration table from all schemas #52076
Conversation
Changing Line 126 in 68e88bb
|
Only if there's only a single connection used |
But |
|
I'm very very scared to change this on a patch release. It almost always breaks existing apps. |
I'm sorry but the changes here aren't valid. The |
All tables across all schemas are already dumped, this change just now dumps the data from all |
|
|
Updated the patch. It now attempts to detect if a single schema is in use and then dumps only that table. If the migration table already has a schema attached it is left as-is. |
@simon-tma Would you please check PR #52098 to see if it resolves your issue? |
It does not |
@simon-tma would you please share more info? what was the output? What is your
This shouldn't happen anymore using that PR, because we are checking if the table exists before dumping. |
Going to close this one now for a lack of activity. |
If a pgsql connection is using a
search_path
other thanpublic
, the currentschema:dump
command fails becausepublic.migrations
doesn't exist.pg_dump
doesn't provide a way to setsearch_path
, so just dump themigrations
table from all schemas instead.