From 76b78721ca49c16dfcbfbd2f4f87fcdb2db2bbb6 Mon Sep 17 00:00:00 2001 From: Amit Kapila Date: Tue, 25 Nov 2025 06:47:49 +0000 Subject: Add slotsync skip statistics. This patch adds two new columns to the pg_stat_replication_slots view: slotsync_skip_count - the total number of times a slotsync operation was skipped. slotsync_skip_at - the timestamp of the most recent skip. These additions provide better visibility into replication slot synchronization behavior. A future patch will introduce the slotsync_skip_reason column in pg_replication_slots to capture the reason for skip. Author: Shlok Kyal Reviewed-by: shveta malik Reviewed-by: Hayato Kuroda Reviewed-by: Ashutosh Sharma Reviewed-by: Amit Kapila Discussion: https://postgr.es/m/CAE9k0PkhfKrTEAsGz4DjOhEj1nQ+hbQVfvWUxNacD38ibW3a1g@mail.gmail.com --- doc/src/sgml/monitoring.sgml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'doc/src') diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index 436ef0e8bd0..dcc8474a7f7 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -1659,6 +1659,30 @@ description | Waiting for a newly initialized WAL file to reach durable storage + + + slotsync_skip_countbigint + + + Number of times the slot synchronization is skipped. Slot + synchronization occur only on standby servers and thus this column has + no meaning on the primary server. + + + + + + + slotsync_skip_attimestamp with time zone + + + Time at which last slot synchronization was skipped. Slot + synchronization occur only on standby servers and thus this column has + no meaning on the primary server. + + + + stats_reset timestamp with time zone -- cgit v1.2.3