postgresql/src
Amit Kapila 76b78721ca 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 <shlok.kyal.oss@gmail.com>
Reviewed-by: shveta malik <shveta.malik@gmail.com>
Reviewed-by: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Reviewed-by: Ashutosh Sharma <ashu.coek88@gmail.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Discussion: https://postgr.es/m/CAE9k0PkhfKrTEAsGz4DjOhEj1nQ+hbQVfvWUxNacD38ibW3a1g@mail.gmail.com
2025-11-25 07:06:02 +00:00
..
backend Add slotsync skip statistics. 2025-11-25 07:06:02 +00:00
bin psql: Improve tab-completion for PREPARE. 2025-11-23 23:03:53 +09:00
common Document that pg_getaddrinfo_all does not accept null hints 2025-11-13 16:35:07 +01:00
fe_utils Add \pset options for boolean value display 2025-11-03 17:40:39 +01:00
include Add slotsync skip statistics. 2025-11-25 07:06:02 +00:00
interfaces Add pg_add_size_overflow() and friends 2025-11-24 09:59:38 -08:00
makefiles Remove traces of support for Sun Studio compiler 2025-09-12 07:39:05 +02:00
pl Avoid memory leak in validation of a PL/Python trigger function. 2025-10-23 14:23:26 -04:00
port Handle EPERM in pg_numa_init 2025-11-20 13:26:49 +01:00
template Remove traces of support for Sun Studio compiler 2025-09-12 07:39:05 +02:00
test Add slotsync skip statistics. 2025-11-25 07:06:02 +00:00
timezone Update timezone to C99 2025-11-21 13:07:40 +01:00
tools pg_buffercache: Add pg_buffercache_os_pages 2025-11-24 14:29:15 +09:00
tutorial Fix compile of src/tutorial/funcs.c 2025-10-07 10:45:57 +02:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Remove traces of support for Sun Studio compiler 2025-09-12 07:39:05 +02:00
Makefile.shlib Use exported symbols list on macOS for loadable modules as well 2025-06-10 07:04:43 +02:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
nls-global.mk Fix update-po for the PGXS case 2025-10-16 20:21:05 +02:00