Re: Replication slot is not able to sync up
Amit Kapila <amit.kapila16@gmail.com>
From: Amit Kapila <amit.kapila16@gmail.com>
To: shveta malik <shveta.malik@gmail.com>
Cc: Peter Smith <smithpb2250@gmail.com>,
"Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>, Masahiko Sawada <sawada.mshk@gmail.com>, Robert Haas <robertmhaas@gmail.com>, Suraj Kharage <suraj.kharage@enterprisedb.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-06-17T06:30:58Z
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
On Mon, Jun 16, 2025 at 9:27 AM shveta malik <shveta.malik@gmail.com> wrote: > > Thanks Peter and Amit for feedback. I have updated the patch. > <para> + When slot-synchronization setup is done as recommended, and + slot-synchronization is performed the very first time either automatically + or by <link linkend="pg-sync-replication-slots"> + <function>pg_sync_replication_slots</function></link>, + then for the synchronized slot to be created and persisted on the standby, + one condition must be met. The logical replication slot on the primary + must reach a state where the WALs and system catalog rows retained by + the slot are also present on the corresponding standby server. This is + needed to prevent any data loss and to allow logical replication to continue + ... This whole paragraph sounds like a duplicate of its previous section, and the line alignment in the first paragraph has some issues. -- With Regards, Amit Kapila.