Update replication statistics after every stream/spill.

Amit Kapila <akapila@postgresql.org>

Commit: 592f00f8dec68038301467a904ac514eddabf6cd
Author: Amit Kapila <akapila@postgresql.org>
Date: 2021-05-06T05:51:26Z
Releases: 14.0
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

Files

Documentation touched

Discussion