Re: BUG #18897: Logical replication conflict after using pg_createsubscriber under heavy load
vignesh C <vignesh21@gmail.com>
From: vignesh C <vignesh21@gmail.com>
To: Shlok Kyal <shlok.kyal.oss@gmail.com>
Cc: Euler Taveira <euler@eulerto.com>, duffieldzane@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2025-05-14T05:30:39Z
Lists: pgsql-bugs
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix duplicate transaction replay during pg_createsubscriber.
- e1c3654839e4 19 (unreleased) landed
- 33f74b806ce3 18.0 landed
- 967309116f0d 17.6 landed
-
pg_createsubscriber: Fix an unpredictable recovery wait time.
- 03b08c8f5f3e 18.0 cited
On Sun, 11 May 2025 at 00:49, Shlok Kyal <shlok.kyal.oss@gmail.com> wrote: > > Thanks for providing the patch. I have verified the original case with > the patch on both HEAD and PG_17. > With the changes in [1], I noticed that even if the consistent lsn is > set to 'COMMIT' record, we do not get data mismatches or the primary > key conflict. > I have also attached the logs for test runs with your changes. > > I have also attached the patches which apply on HEAD and PG_17. The changes look good to me, I don't have any more comments. Regards, Vignesh