From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Enhance pg_stat_wal_receiver view to display host and port of se
Date: Fri, 30 Mar 2018 23:03:53 +0000
Message-ID: <E1f233p-0002vt-PH@gemulon.postgresql.org> (raw)
Enhance pg_stat_wal_receiver view to display host and port of sender server.
Previously there was no way in the standby side to find out the host and port
of the sender server that the walreceiver was currently connected to when
multiple hosts and ports were specified in primary_conninfo. For that purpose,
this patch adds sender_host and sender_port columns into pg_stat_wal_receiver
view. They report the host and port that the active replication connection
currently uses.
Bump catalog version.
Author: Haribabu Kommi
Reviewed-by: Michael Paquier and me
Discussion: https://postgr.es/m/CAJrrPGcV_aq8=cdqkFhVDJKEnDQ70yRTTdY9RODzMnXNrCz2Ow@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/9a895462d940c0694042059f90e5f63a0a517ded
Modified Files
--------------
doc/src/sgml/monitoring.sgml | 19 +++++++++++++
src/backend/catalog/system_views.sql | 2 ++
.../libpqwalreceiver/libpqwalreceiver.c | 26 ++++++++++++++++++
src/backend/replication/walreceiver.c | 32 ++++++++++++++++++++--
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.h | 2 +-
src/include/replication/walreceiver.h | 13 +++++++++
src/test/regress/expected/rules.out | 4 ++-
8 files changed, 94 insertions(+), 6 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: fujii@postgresql.org
Subject: Re: pgsql: Enhance pg_stat_wal_receiver view to display host and port of se
In-Reply-To: <E1f233p-0002vt-PH@gemulon.postgresql.org>
References: <E1f233p-0002vt-PH@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