vignesh C: Seamless PostgreSQL subscriber upgrades: Preserving Logical Replication state
postgresql.fastware.com·15h
Flag this post

With a new feature introduced in PostgreSQL 17, this changes. The upgrade process now natively preserves the full state of your logical subscriptions, making subscriber upgrades a seamless and reliable part of your maintenance routine.

Seamlessly upgrade PostgreSQL subscribers with PostgreSQL 17’s new feature that preserves logical replication states

The problem: A broken link after pg_upgrade

Before PostgreSQL 17, pg_upgrade did not fully support logical replication. While the top-level subscription metadata in the pg_subscription catalog was kept, crucial details were discarded, creating a broken link between the old and new clusters:

  • Lost table states (p…

Similar Posts

Loading similar posts...