]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Improve log messages and docs for slot synchronization.
authorAmit Kapila <akapila@postgresql.org>
Thu, 19 Jun 2025 04:02:30 +0000 (09:32 +0530)
committerAmit Kapila <akapila@postgresql.org>
Thu, 19 Jun 2025 04:02:30 +0000 (09:32 +0530)
commit25505082f0e7aa6dc9cd068b0e5330bb1ca22751
treed58bf1b0aa4e157dbaa3c400f1745db67335569b
parent45c357e0e85d2dffe7af5440806150124a725a01
Improve log messages and docs for slot synchronization.

Improve the clarity of LOG messages when a failover logical slot
synchronization fails, making the reasons more explicit for easier
debugging.

Update the documentation to outline scenarios where slot synchronization
can fail, especially during the initial sync, and emphasize that
pg_sync_replication_slot() is primarily intended for testing and
debugging purposes.

We also discussed improving the functionality of
pg_sync_replication_slot() so that it can be used reliably, but we would
take up that work for next version after some more discussion and review.

Reported-by: Suraj Kharage <suraj.kharage@enterprisedb.com>
Author: shveta malik <shveta.malik@gmail.com>
Reviewed-by: Zhijie Hou <houzj.fnst@fujitsu.com>
Reviewed-by: Peter Smith <smithpb2250@gmail.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Backpatch-through: 17, where it was introduced
Discussion: https://postgr.es/m/CAF1DzPWTcg+m+x+oVVB=y4q9=PYYsL_mujVp7uJr-_oUtWNGbA@mail.gmail.com
doc/src/sgml/func.sgml
doc/src/sgml/logicaldecoding.sgml
src/backend/replication/logical/slotsync.c