Re: Replication slot is not able to sync up
shveta malik <shveta.malik@gmail.com>
From: shveta malik <shveta.malik@gmail.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>,
Suraj Kharage <suraj.kharage@enterprisedb.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
shveta malik <shveta.malik@gmail.com>
Date: 2025-05-27T05:50:39Z
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 →
-
Improve log messages and docs for slot synchronization.
- 1546e17f9d06 18.0 landed
- 25505082f0e7 17.6 landed
Attachments
- v2-0001-Improve-log-messages-and-docs-for-slotsync.patch (application/octet-stream) patch v2-0001
- test_slotsync.sh (text/x-sh)
On Mon, May 26, 2025 at 12:02 PM shveta malik <shveta.malik@gmail.com> wrote: > > Agree that log messages need improvement. Please find the patch > attached for the same. I also intend to update the docs in this area > for users to understand this feature better, and will work on that > soon. > PFA the patch with doc changes as well. The doc explains the need of pg_logical_slot_get_changes() for a particular scenario. Also attached the script to show how this setup works. When the replication slot is being actively consumed on primary, we do not observe that particular LOG (could not synchronize replication) on standby and synchronization proceeds without any manual intervention. Thanks Nisha for the script. thanks Shveta