From: | Amit Kapila <akapila(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Update replication statistics after every stream/spill. |
Date: | 2021-05-06 06:18:43 |
Message-ID: | E1leXLP-0007lP-Gg@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2021-05-06 12:26:31 | pgsql: docs: Clarify how ALTER TABLE .. SET COMPRESSION works. |
Previous Message | Andres Freund | 2021-05-06 05:30:31 | pgsql: jit: Fix warning reported by gcc-11 caused by dubious function s |