From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: pgstat: add WAL receiver status view & SRF
Date: Thu, 07 Jan 2016 19:36:55 +0000
Message-ID: <E1aHGMh-00011K-98@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
pgstat: add WAL receiver status view & SRF
This new view provides insight into the state of a running WAL receiver
in a HOT standby node.
The information returned includes the PID of the WAL receiver process,
its status (stopped, starting, streaming, etc), start LSN and TLI, last
received LSN and TLI, timestamp of last message send and receipt, latest
end-of-WAL LSN and time, and the name of the slot (if any).
Access to the detailed data is only granted to superusers; others only
get the PID.
Author: Michael Paquier
Reviewer: Haribabu Kommi
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/b1a9bad9e744857291c7d5516080527da8219854
Modified Files
--------------
doc/src/sgml/monitoring.sgml | 91 +++++++++++++++++++
src/backend/catalog/system_views.sql | 16 ++++
src/backend/replication/walreceiver.c | 154 +++++++++++++++++++++++++++++++++
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.h | 2 +
src/include/replication/walreceiver.h | 2 +
src/test/regress/expected/rules.out | 13 +++
7 files changed, 279 insertions(+), 1 deletion(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: alvherre@alvh.no-ip.org
Subject: Re: pgsql: pgstat: add WAL receiver status view & SRF
In-Reply-To: <E1aHGMh-00011K-98@gemulon.postgresql.org>
References: <E1aHGMh-00011K-98@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