mirror of
https://github.com/postgres/postgres.git
synced 2025-07-26 01:22:12 +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:
@ -618,6 +618,13 @@ struct ReorderBuffer
|
||||
int64 streamTxns; /* number of transactions streamed */
|
||||
int64 streamCount; /* streaming invocation counter */
|
||||
int64 streamBytes; /* amount of data streamed */
|
||||
|
||||
/*
|
||||
* Statistics about all the transactions sent to the decoding output
|
||||
* plugin
|
||||
*/
|
||||
int64 totalTxns; /* total number of transactions sent */
|
||||
int64 totalBytes; /* total amount of data sent */
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user