pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add timestamp of last received message from standby to pg_stat_r
Date: Sun, 09 Dec 2018 07:41:55 +0000
Message-ID: <E1gVtit-0005FC-Tk@gemulon.postgresql.org> (raw)

Add timestamp of last received message from standby to pg_stat_replication

The timestamp generated by the standby at message transmission has been
included in the protocol since its introduction for both the status
update message and hot standby feedback message, but it has never
appeared in pg_stat_replication.  Seeing this timestamp does not matter
much with a cluster which has a lot of activity, but on a mostly-idle
cluster, this makes monitoring able to react faster than the configured
timeouts.

Author: MyungKyu LIM
Reviewed-by: Michael Paquier, Masahiko Sawada
Discussion: https://postgr.es/m/1657809367.407321.1533027417725.JavaMail.jboss@ep2ml404

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7fee252f6fbf78ca5e50ee591573d59f98e75d37

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



Message-ID: <E1gVtit-0005FC-Tk@gemulon.postgresql.org>
Permalink:  ../E1gVtit-0005FC-Tk@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gVtit-0005FC-Tk@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: michael@paquier.xyz
  Subject: Re: pgsql: Add timestamp of last received message from standby to pg_stat_r
  In-Reply-To: <E1gVtit-0005FC-Tk@gemulon.postgresql.org>
  References: <E1gVtit-0005FC-Tk@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