Re: Skipping schema changes in publication
vignesh C <vignesh21@gmail.com>
From: vignesh C <vignesh21@gmail.com>
To: Peter Smith <smithpb2250@gmail.com>
Cc: "osumi.takamichi@fujitsu.com" <osumi.takamichi@fujitsu.com>,
Amit Kapila <amit.kapila16@gmail.com>, Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-05-21T05:30:52Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix miscellaneous issues in EXCEPT publication clause.
- 6b0550c45d13 19 (unreleased) landed
-
Change syntax of EXCEPT TABLE clause in publication commands.
- 5984ea868eee 19 (unreleased) landed
-
Add support for EXCEPT TABLE in ALTER PUBLICATION.
- 493f8c6439cf 19 (unreleased) landed
-
Allow table exclusions in publications via EXCEPT TABLE.
- fd366065e06a 19 (unreleased) landed
-
Add wait_for_subscription_sync for TAP tests.
- 0c20dd33db16 16.0 cited
Attachments
- v7-0001-Add-RESET-clause-to-Alter-Publication-which-will-.patch (text/x-patch) patch v7-0001
- v7-0002-Skip-publishing-the-tables-specified-in-EXCEPT-TA.patch (text/x-patch) patch v7-0002
On Thu, May 19, 2022 at 1:49 PM Peter Smith <smithpb2250@gmail.com> wrote: > > Below are my review comments for v6-0001. > > ====== > > 1. General. > > The patch failed 'publication' tests in the make check phase. > > Please add this work to the commit-fest so that the 'cfbot' can report > such errors sooner. Added commitfest entry > ~~~ > > 2. src/backend/commands/publicationcmds.c - AlterPublicationReset > > +/* > + * Reset the publication. > + * > + * Reset the publication options, publication relations and > publication schemas. > + */ > +static void > +AlterPublicationReset(ParseState *pstate, AlterPublicationStmt *stmt, > + Relation rel, HeapTuple tup) > > SUGGESTION (Make the comment similar to the sgml text instead of > repeating "publication" 4x !) > /* > * Reset the publication options, set the ALL TABLES flag to false, and > * drop all relations and schemas that are associated with the publication. > */ Modified > ~~~ > > 3. src/test/regress/expected/publication.out > > make check failed. The diff is below: > > @@ -1716,7 +1716,7 @@ > -- Verify that only superuser can reset a publication > ALTER PUBLICATION testpub_reset OWNER TO regress_publication_user2; > SET ROLE regress_publication_user2; > -ALTER PUBLICATION testpub_reset RESET; -- fail > +ALTER PUBLICATION testpub_reset RESET; -- fail - must be superuser > ERROR: must be superuser to RESET publication > SET ROLE regress_publication_user; > DROP PUBLICATION testpub_reset; It passed for me locally because the change was present in the 002 patch. I have moved the change to 001. The attached v7 patch has the changes for the same. [1] - https://commitfest.postgresql.org/38/3646/ Regards, Vignesh