mirror of
https://github.com/postgres/postgres.git
synced 2026-01-26 09:41:40 +03:00
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 <shlok.kyal.oss@gmail.com>
Reviewed-by: Michael Banck <mbanck@gmx.net>
Discussion: https://postgr.es/m/20251128091552.GB13635@p46.dedyn.io;lightning.p46.dedyn.io
Discussion: https://postgr.es/m/CAE9k0PkhfKrTEAsGz4DjOhEj1nQ+hbQVfvWUxNacD38ibW3a1g@mail.gmail.com
This commit is contained in:
@@ -57,6 +57,6 @@
|
||||
*/
|
||||
|
||||
/* yyyymmddN */
|
||||
#define CATALOG_VERSION_NO 202511281
|
||||
#define CATALOG_VERSION_NO 202512051
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5693,7 +5693,7 @@
|
||||
proparallel => 'r', prorettype => 'record', proargtypes => 'text',
|
||||
proallargtypes => '{text,text,int8,int8,int8,int8,int8,int8,int8,int8,int8,int8,timestamptz,timestamptz}',
|
||||
proargmodes => '{i,o,o,o,o,o,o,o,o,o,o,o,o,o}',
|
||||
proargnames => '{slot_name,slot_name,spill_txns,spill_count,spill_bytes,stream_txns,stream_count,stream_bytes,mem_exceeded_count,total_txns,total_bytes,slotsync_skip_count,slotsync_skip_at,stats_reset}',
|
||||
proargnames => '{slot_name,slot_name,spill_txns,spill_count,spill_bytes,stream_txns,stream_count,stream_bytes,mem_exceeded_count,total_txns,total_bytes,slotsync_skip_count,slotsync_last_skip,stats_reset}',
|
||||
prosrc => 'pg_stat_get_replication_slot' },
|
||||
|
||||
{ oid => '6230', descr => 'statistics: check if a stats object exists',
|
||||
|
||||
@@ -401,7 +401,7 @@ typedef struct PgStat_StatReplSlotEntry
|
||||
PgStat_Counter total_txns;
|
||||
PgStat_Counter total_bytes;
|
||||
PgStat_Counter slotsync_skip_count;
|
||||
TimestampTz slotsync_skip_at;
|
||||
TimestampTz slotsync_last_skip;
|
||||
TimestampTz stat_reset_timestamp;
|
||||
} PgStat_StatReplSlotEntry;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user