Re: Conflict detection and logging in logical replication
Amit Kapila <amit.kapila16@gmail.com>
From: Amit Kapila <amit.kapila16@gmail.com>
To: shveta malik <shveta.malik@gmail.com>
Cc: "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>, "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>,
Nisha Moond <nisha.moond412@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>,
Dilip Kumar <dilipbalaut@gmail.com>, Jan Wieck <jan@wi3ck.info>, Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Date: 2024-08-19T10:46:37Z
Lists: pgsql-hackers
Attachments
- v18-0001-Log-the-conflicts-while-applying-changes-in-logi.patch (application/octet-stream) patch v18-0001
On Mon, Aug 19, 2024 at 3:03 PM shveta malik <shveta.malik@gmail.com> wrote: > > On Mon, Aug 19, 2024 at 12:32 PM Zhijie Hou (Fujitsu) > <houzj.fnst@fujitsu.com> wrote: > > > > > > Thanks for reporting the bug. I have fixed it and ran pgindent in V17 patch. > > I also adjusted few comments and fixed a typo. > > > > Thanks for the patch. Re-tested it, all scenarios seem to work well now. > > I see that this version has new header inclusion in conflict.c, due to > which I think "catalog/index.h" inclusion is now redundant. Please > recheck and remove if so. > This is an extra include, so removed in the attached. Additionally, I have modified a few comments and commit message. > Also, there are few long lines in conflict.c (see line 408, 410). > I have left these as it is because pgindent doesn't complain about them. > Rest looks good. > Thanks for the review and testing. -- With Regards, Amit Kapila.
Commits
-
Rename the conflict types for the origin differ cases.
- 640178c92e3f 18.0 landed
-
Doc: explain the log format of logical replication conflicts.
- edcb71258504 18.0 landed
-
Log the conflicts while applying changes in logical replication.
- 9758174e2e5c 18.0 landed
-
Avoid duplicate table scans for cross-partition updates during logical replication.
- a67da49e1d98 18.0 cited