Skip to content

Handle pg_partman extension relations by catalog#16

Draft
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/migrator-pr-review-0c5f
Draft

Handle pg_partman extension relations by catalog#16
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/migrator-pr-review-0c5f

Conversation

@cursor

@cursor cursor Bot commented Jun 29, 2026

Copy link
Copy Markdown

Summary

  • Detect pg_partman through pg_extension instead of hard-coded schema names
  • Recreate pg_partman maintenance metadata for default/public extension installs
  • Exclude pg_partman extension-owned config tables and configured template tables from Bucardo relation registration
  • Keep application partition leaf tables replicated

Validation

  • bash -n scripts/mk-bucardo-repl.sh
  • bash -n test/test_pg_partman_setup.sh
  • bash test/test_pg_partman_setup.sh
  • bash -n test/test_e2e.sh
  • bash -n test/test_cutover.sh
  • ruby -c test/test_server_wrapper.rb
  • Local Postgres/pg_partman catalog integration with fake Bucardo verified metadata recreation and no part_config/template Bucardo registration

Full disposable-infrastructure validation was blocked in this VM because the Heroku/PlanetScale CLIs and required secret env vars were unavailable.

Open in Web View Automation 

mscoutermarsh and others added 2 commits June 29, 2026 17:57
Based on: #10 (needed
to make some changes to handle edge cases from some other recent
improvements)
Co-authored-by: mike <mike@planetscale.com>
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