mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Add information of total data processed to replication slot stats.
This adds the statistics about total transactions count and total transaction data logically sent to the decoding output plugin from ReorderBuffer. Users can query the pg_stat_replication_slots view to check these stats. Suggested-by: Andres Freund Author: Vignesh C and Amit Kapila Reviewed-by: Sawada Masahiko, Amit Kapila Discussion: https://postgr.es/m/20210319185247.ldebgpdaxsowiflw@alap3.anarazel.de
This commit is contained in:
@ -548,6 +548,8 @@ typedef struct PgStat_MsgReplSlot
|
||||
PgStat_Counter m_stream_txns;
|
||||
PgStat_Counter m_stream_count;
|
||||
PgStat_Counter m_stream_bytes;
|
||||
PgStat_Counter m_total_txns;
|
||||
PgStat_Counter m_total_bytes;
|
||||
} PgStat_MsgReplSlot;
|
||||
|
||||
/* ----------
|
||||
@ -924,6 +926,8 @@ typedef struct PgStat_ReplSlotStats
|
||||
PgStat_Counter stream_txns;
|
||||
PgStat_Counter stream_count;
|
||||
PgStat_Counter stream_bytes;
|
||||
PgStat_Counter total_txns;
|
||||
PgStat_Counter total_bytes;
|
||||
TimestampTz stat_reset_timestamp;
|
||||
} PgStat_ReplSlotStats;
|
||||
|
||||
|
Reference in New Issue
Block a user