From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Update replication statistics after every stream/spill.
Date: Thu, 06 May 2021 06:18:43 +0000
Message-ID: <E1leXLP-0007lP-Gg@gemulon.postgresql.org> (raw)
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/592f00f8dec68038301467a904ac514eddabf6cd
Modified Files
--------------
doc/src/sgml/monitoring.sgml | 15 +++++++--------
src/backend/replication/logical/decode.c | 14 ++++++++------
src/backend/replication/logical/reorderbuffer.c | 6 ++++++
src/include/replication/reorderbuffer.h | 4 ++--
4 files changed, 23 insertions(+), 16 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: akapila@postgresql.org
Subject: Re: pgsql: Update replication statistics after every stream/spill.
In-Reply-To: <E1leXLP-0007lP-Gg@gemulon.postgresql.org>
References: <E1leXLP-0007lP-Gg@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox