pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Track statistics for spilling of changes from ReorderBuffer.
Date: Thu, 21 Nov 2019 02:45:13 +0000
Message-ID: <E1iXcT3-0001TR-Le@gemulon.postgresql.org> (raw)

Track statistics for spilling of changes from ReorderBuffer.

This adds the statistics about transactions spilled to disk from
ReorderBuffer.  Users can query the pg_stat_replication view to check
these stats.

Author: Tomas Vondra, with bug-fixes and minor changes by Dilip Kumar
Reviewed-by: Amit Kapila
Discussion: https://postgr.es/m/688b0b7f-2f6c-d827-c27b-216a8e3ea700@2ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9290ad198b15d6b986b855d2a58d087a54777e87

Modified Files
--------------
doc/src/sgml/monitoring.sgml                    | 20 ++++++++++++
src/backend/catalog/system_views.sql            |  5 ++-
src/backend/replication/logical/reorderbuffer.c | 12 +++++++
src/backend/replication/walsender.c             | 42 +++++++++++++++++++++++--
src/include/catalog/catversion.h                |  2 +-
src/include/catalog/pg_proc.dat                 |  6 ++--
src/include/replication/reorderbuffer.h         | 11 +++++++
src/include/replication/walsender_private.h     |  5 +++
src/test/regress/expected/rules.out             |  7 +++--
9 files changed, 101 insertions(+), 9 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1iXcT3-0001TR-Le@gemulon.postgresql.org>
Permalink:  ../E1iXcT3-0001TR-Le@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iXcT3-0001TR-Le@gemulon.postgresql.org

 · 

reply

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: Track statistics for spilling of changes from ReorderBuffer.
  In-Reply-To: <E1iXcT3-0001TR-Le@gemulon.postgresql.org>
  References: <E1iXcT3-0001TR-Le@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