diff options
author | Amit Kapila <akapila@postgresql.org> | 2021-05-06 11:21:26 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2021-05-06 11:21:26 +0530 |
commit | 592f00f8dec68038301467a904ac514eddabf6cd (patch) | |
tree | 5bc251cc881aa61308c32e9996a9ca770acf5279 /doc/src | |
parent | 7f2e10baa2482494dbcf70e0ae6f0469771e0b4c (diff) | |
download | postgresql-592f00f8dec68038301467a904ac514eddabf6cd.tar.gz postgresql-592f00f8dec68038301467a904ac514eddabf6cd.zip |
Update replication statistics after every stream/spill.
Currently, replication slot statistics are updated at prepare, commit, and
rollback. Now, if the transaction is interrupted the stats might not get
updated. Fixed this by updating replication statistics after every
stream/spill.
In passing update the docs to change the description of some of the slot
stats.
Author: Vignesh C, Sawada Masahiko
Reviewed-by: Amit Kapila
Discussion: https://postgr.es/m/20210319185247.ldebgpdaxsowiflw@alap3.anarazel.de
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/monitoring.sgml | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index 886e626be80..370cdc2e1a1 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -2708,10 +2708,10 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i <structfield>stream_bytes</structfield><type>bigint</type> </para> <para> - Amount of decoded in-progress transaction data streamed to the decoding - output plugin while decoding changes from WAL for this slot. This and other - streaming counters for this slot can be used to gauge the network I/O which - occurred during logical decoding and allow tuning <literal>logical_decoding_work_mem</literal>. + Amount of transaction data decoded for streaming in-progress + transactions to the decoding output plugin while decoding changes from + WAL for this slot. This and other streaming counters for this slot can + be used to tune <literal>logical_decoding_work_mem</literal>. </para> </entry> </row> @@ -2733,10 +2733,9 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i <structfield>total_bytes</structfield><type>bigint</type> </para> <para> - Amount of decoded transaction data sent to the decoding output plugin - while decoding the changes from WAL for this slot. This can be used to - gauge the total amount of data sent during logical decoding. Note that - this includes data that is streamed and/or spilled. + Amount of transaction data decoded for sending transactions to the + decoding output plugin while decoding changes from WAL for this slot. + Note that this includes data that is streamed and/or spilled. </para> </entry> </row> |