RE: [BUG] wrong refresh when ALTER SUBSCRIPTION ADD/DROP PUBLICATION
Zhijie Hou (Fujitsu) <houzj.fnst@fujitsu.com>
From: "houzj.fnst@fujitsu.com" <houzj.fnst@fujitsu.com>
To: Masahiko Sawada <sawada.mshk@gmail.com>, Amit Kapila <amit.kapila16@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, Japin Li <japinli@hotmail.com>
Date: 2021-08-24T01:01:51Z
Lists: pgsql-hackers
Attachments
- v8-0001-PG15-Fix-Alter-Subscription-Add-Drop-Publication-refre.patch (application/octet-stream) patch v8-0001
- v8-0001-PG14-Fix-Alter-Subscription-Add-Drop-Publication-refre_patch (application/octet-stream)
> -----Original Message----- > From: Masahiko Sawada <sawada.mshk@gmail.com> > Sent: Tuesday, August 24, 2021 8:52 AM > > Thanks. The patch for HEAD looks good to me. Regarding the patch for PG14, I > think we need to update the comment as well: > > @@ -987,7 +986,7 @@ AlterSubscription(AlterSubscriptionStmt *stmt, bool > isTopLevel) > PreventInTransactionBlock(isTopLevel, "ALTER SUBSCRIPTION with > refresh"); > > /* Only refresh the added/dropped list of publications. */ > - sub->publications = stmt->publication; > + sub->publications = publist; > Thanks for the comment, attach new version patch which fixed it. Best regards, Hou zj
Commits
-
Fix Alter Subscription's Add/Drop Publication behavior.
- 5cfcd46e9d29 14.0 landed
- 1046a69b3087 15.0 landed
-
ALTER SUBSCRIPTION ... ADD/DROP PUBLICATION
- 82ed7748b710 14.0 cited