Rename column slotsync_skip_at to slotsync_last_skip.
authorAmit Kapila <[email protected]>
Fri, 5 Dec 2025 04:12:55 +0000 (04:12 +0000)
committerAmit Kapila <[email protected]>
Fri, 5 Dec 2025 04:12:55 +0000 (04:12 +0000)
commit5db6a344abc2dfbc5df454cd93a096443ea4dd3e
treed1c3fd4d90735d3072ed13f213f532e743003c41
parent7bc88c3d6f3af3af5330c0e209c8a3c411267d00
Rename column slotsync_skip_at to slotsync_last_skip.

Commit 76b78721ca introduced two new columns in pg_stat_replication_slots
to improve monitoring of slot synchronization. One of these columns was
named slotsync_skip_at, which is inconsistent with the naming convention
used for similar columns in other system views.

Columns that store timestamps of the most recent event typically use the
'last_' in the column name (e.g., last_autovacuum, checksum_last_failure).
Renaming slotsync_skip_at to slotsync_last_skip aligns with this pattern,
making the purpose of the column clearer and improving overall consistency
across the views.

Author: Shlok Kyal <[email protected]>
Reviewed-by: Michael Banck <[email protected]>
Discussion: https://postgr.es/m/20251128091552[email protected];lightning.p46.dedyn.io
Discussion: https://postgr.es/m/CAE9k0PkhfKrTEAsGz4DjOhEj1nQ+hbQVfvWUxNacD38ibW3a1g@mail.gmail.com
contrib/test_decoding/expected/stats.out
doc/src/sgml/monitoring.sgml
src/backend/catalog/system_views.sql
src/backend/utils/activity/pgstat_replslot.c
src/backend/utils/adt/pgstatfuncs.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.dat
src/include/pgstat.h
src/test/regress/expected/rules.out