Re: Handle infinite recursion in logical replication setup
vignesh C <vignesh21@gmail.com>
From: vignesh C <vignesh21@gmail.com>
To: Peter Smith <smithpb2250@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>,
Dilip Kumar <dilipbalaut@gmail.com>, Alvaro Herrera <alvherre@alvh.no-ip.org>,
Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, "kuroda.hayato@fujitsu.com" <kuroda.hayato@fujitsu.com>,
"shiy.fnst@fujitsu.com" <shiy.fnst@fujitsu.com>
Date: 2022-07-20T09:03:16Z
Lists: pgsql-hackers
Attachments
- v36-0001-Allow-users-to-skip-logical-replication-of-data-.patch (text/x-patch) patch v36-0001
On Wed, Jul 20, 2022 at 10:38 AM Peter Smith <smithpb2250@gmail.com> wrote: > > On Tue, Jul 19, 2022 at 11:34 PM Amit Kapila <amit.kapila16@gmail.com> wrote: > > > > On Mon, Jul 18, 2022 at 9:46 PM vignesh C <vignesh21@gmail.com> wrote: > > > > > > I have updated the patch to handle the origin value case > > > insensitively. The attached patch has the changes for the same. > > > > > > > Thanks, the patch looks mostly good to me. I have made a few changes > > in 0001 patch which are as follows: (a) make a comparison of origin > > names in maybe_reread_subscription similar to slot names as in future > > we may support origin names other than 'any' and 'none', (b) made > > comment changes at few places and minor change in one of the error > > message, (c) ran pgindent and slightly changed the commit message. > > > > I am planning to push this day after tomorrow unless there are any > > comments/suggestions. > > FYI, the function name in the comment is not same as the function name here: > > +/* > + * IsReservedName > + * True iff name is either "none" or "any". > + */ > +static bool > +IsReservedOriginName(const char *name) Modified. Apart from this I have run pgperltidy on the perl file and renamed 032_origin.pl to 030_origin.pl as currently there is 029_on_error.pl, 031_column_list.pl and there is no 030_*****.pl file. Thanks for the comment, the attached patch has the changes for the same. Regards, Vignesh
Commits
-
Improved CREATE SUBSCRIPTION message for clarity
- 1e7ca1189ccc 17.0 landed
- 842b65905046 16.0 landed
-
Fix the test case introduced by commit 8756930190.
- 032465157347 16.0 landed
-
Raise a warning if there is a possibility of data from multiple origins.
- 875693019053 16.0 landed
-
Add wait_for_subscription_sync for TAP tests.
- 0c20dd33db16 16.0 cited
-
Bump catversion for commit d8cd0c6c95c0120168df93aae095df4e0682a08a.
- 5f858dd3bebd 16.0 cited
-
Allow users to skip logical replication of data having origin.
- 366283961ac0 16.0 landed
-
Improve two comments related to a boolean DefElem's value
- 8445f5a21d40 16.0 cited
-
doc: Fix man page whitespace issues
- d7ab2a9a3c0a 15.0 cited