PgPartman Support#10
Open
yknx4 wants to merge 3 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #9
This pull request introduces comprehensive support for multi-schema migrations and the
pg_partmanextension in the Heroku-to-PlanetScale migration workflow. It adds fine-grained schema inclusion/exclusion controls, ensures correct handling of generated columns and partitioned tables across schemas, and improves documentation and dashboard guidance for users migrating complex databases.Multi-schema and pg_partman support:
MIGRATION_SCHEMASandMIGRATION_EXCLUDE_SCHEMASenvironment variables to allow users to specify which schemas to include or exclude during migration, defaulting topublicand excluding common extension/internal schemas. The migrator now processes schemas accordingly throughout the migration process, including schema copy, Bucardo configuration, and generated column handling. (README.md,AGENTS.md,scripts/mk-bucardo-repl.sh) [1] [2] [3] [4] [5] [6]pg_partman, including instructions for pausing jobs, installing the extension, and manually applying generated SQL to recreate partition sets on PlanetScale. The dashboard now surfaces preflight information and SQL forpg_partman-managed tables. (README.md,AGENTS.md,status-server/dashboard.html) [1] [2] [3] [4]Generated columns and schema-aware queries:
public. (AGENTS.md,scripts/mk-bucardo-repl.sh) [1] [2] [3] [4] [5] [6] [7]<schema>.<table>notation and to operate across all included schemas. (AGENTS.md,scripts/mk-bucardo-repl.sh) [1] [2] [3]Operational improvements and configuration:
entrypoint.sh,scripts/mk-bucardo-repl.sh) [1] [2]README.md,AGENTS.md) [1] [2]Documentation and dashboard enhancements:
pg_partmanworkflows, including environment variable usage, troubleshooting, and schema-aware examples. (README.md,AGENTS.md) [1] [2] [3]pg_partmanstatus, parent tables, and generated SQL for user action. (status-server/dashboard.html) [1] [2] [3]