feat: enhance online migration with auto-creation and cleanup of publications and slots#7
Conversation
isdaniel
commented
May 8, 2026
- Added support for auto-creating publications during online migration if they do not exist.
- Implemented cleanup of auto-created publications and replication slots after successful cutover.
- Introduced CLI flags to control the auto-creation of publications and retention of replication slots.
- Updated documentation to reflect changes in migration phases and resource management.
- Added integration tests to verify the lifecycle of publications and slots during online migrations.
- implement auto-creation and cleanup of publications and replication slots
…ications and slots - Added support for auto-creating publications during online migration if they do not exist. - Implemented cleanup of auto-created publications and replication slots after successful cutover. - Introduced CLI flags to control the auto-creation of publications and retention of replication slots. - Updated documentation to reflect changes in migration phases and resource management. - Added integration tests to verify the lifecycle of publications and slots during online migrations. - implement auto-creation and cleanup of publications and replication slots
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7 +/- ##
==========================================
+ Coverage 90.22% 90.44% +0.22%
==========================================
Files 16 16
Lines 5154 5633 +479
==========================================
+ Hits 4650 5095 +445
- Misses 504 538 +34 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Code Review
This pull request implements automated lifecycle management for PostgreSQL replication resources, enabling the auto-creation of publications and the post-cutover cleanup of publications and replication slots. It introduces new CLI flags, --no-auto-create-publication and --keep-slot, and improves progress reporting by tracking table-level updates from pg_dump. The changes also include a major update to the development documentation and expanded integration testing. Feedback was provided to optimize the cleanup process by making the replication slot drop conditional on a successful wait for inactivity.