RE: logical replication empty transactions
Zhijie Hou (Fujitsu) <houzj.fnst@fujitsu.com>
From: "houzj.fnst@fujitsu.com" <houzj.fnst@fujitsu.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: Ajin Cherian <itsajin@gmail.com>, "shiy.fnst@fujitsu.com" <shiy.fnst@fujitsu.com>, Peter Smith <smithpb2250@gmail.com>, "osumi.takamichi@fujitsu.com" <osumi.takamichi@fujitsu.com>, vignesh C <vignesh21@gmail.com>, Michael Paquier <michael@paquier.xyz>, Rahila Syed <rahila.syed@2ndquadrant.com>, Dilip Kumar <dilipbalaut@gmail.com>, Jeff
Janes <jeff.janes@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>, Craig Ringer <craig@2ndquadrant.com>
Date: 2022-03-24T03:19:18Z
Lists: pgsql-hackers
Attachments
- v29-0001-Skip-empty-transactions-for-logical-replication.patch (application/octet-stream) patch v29-0001
On Tuesday, March 22, 2022 7:50 PM Amit Kapila <amit.kapila16@gmail.com> wrote: > On Tue, Mar 22, 2022 at 7:25 AM houzj.fnst@fujitsu.com > <houzj.fnst@fujitsu.com> wrote: > > > > > On Monday, March 21, 2022 6:01 PM Amit Kapila > > > <amit.kapila16@gmail.com> > > > wrote: > > > > Oh, sorry, I posted the wrong patch, here is the correct one. > > > > The test change looks good to me. I think additionally we can verify that the > record is not reflected in the subscriber table. Apart from that, I had made > minor changes mostly in the comments in the attached patch. If those look > okay to you, please include those in the next version. Thanks, the changes look good to me, I merged the diff patch. Attach the new version patch which include the following changes: - Fix a typo - Change the requestreply flag of the newly added WalSndKeepalive to false, because the subscriber can judge whether it's necessary to post a reply based on the received LSN. - Add a testcase to make sure there is no data in subscriber side when the transaction is skipped. - Change the name of flag skipped_empty_xact to skipped_xact which seems more understandable. - Merge Amit's suggested changes. Best regards, Hou zj
Commits
-
Skip empty transactions for logical replication.
- d5a9d86d8ffc 15.0 landed
-
Add decoding of sequences to built-in replication
- 75b1521dae1f 15.0 cited
-
Allow specifying row filters for logical replication of tables.
- 52e4f0cd472d 15.0 cited