Re: pg_upgrade and logical replication
Julien Rouhaud <rjuju123@gmail.com>
From: Julien Rouhaud <rjuju123@gmail.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-03-27T08:49:55Z
Lists: pgsql-hackers
Attachments
Hi, On Thu, Mar 09, 2023 at 04:34:56PM +0800, Julien Rouhaud wrote: > > Yeah I agree. I added support to also preserve the subscription's replication > origin information, a new --preserve-subscription-state (better naming welcome) > documented option for pg_upgrade to optionally ask for this new mode, and a > similar (but undocumented) option for pg_dump that only works with > --binary-upgrade and added a check in pg_upgrade that all relations are in 'r' > (ready) mode. Patch v2 attached. I'm attaching a v3 to fix a recent conflict with pg_dump due to a563c24c9574b7 (Allow pg_dump to include/exclude child tables automatically). While at it I also tried to improve the documentation, explaining how that option could be useful and what is the drawback of not using it (linking to the pg_dump note about the same) if you plan to reactivate subscription(s) after an upgrade.
Commits
-
pg_upgrade: Retrieve subscription count more efficiently.
- 73de50e13e39 17.0 landed
- 364509a2e7f9 18.0 landed
-
Fix random failure in 004_subscription.
- 677a45c4ae16 17.0 landed
-
Fix 004_subscription.pl to allow its usage in --link mode.
- f17529b71097 17.0 landed
-
Allow upgrades to preserve the full subscription's state.
- 9a17be1e244a 17.0 landed
-
Prevent startup of logical replication launcher during pg_upgrade
- 7021d3b17664 17.0 landed