From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add conninfo to pg_stat_wal_receiver
Date: Wed, 29 Jun 2016 20:58:02 +0000
Message-ID: <E1bIMYc-0002L6-6X@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Add conninfo to pg_stat_wal_receiver
Commit b1a9bad9e744 introduced a stats view to provide insight into the
running WAL receiver, but neglected to include the connection string in
it, as reported by Michaël Paquier. This commit fixes that omission.
(Any security-sensitive information is not disclosed).
While at it, close the mild security hole that we were exposing the
password in the connection string in shared memory. This isn't
user-accessible, but it still looks like a good idea to avoid having the
cleartext password in memory.
Author: Michaël Paquier, Álvaro Herrera
Review by: Vik Fearing
Discussion: https://www.postgresql.org/message-id/CAB7nPqStg4M561obo7ryZ5G+fUydG4v1Ajs1xZT1ujtu+woRag@mail.gmail...
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/9ed551e0a4fdb046d8e5ea779adfd3e184d5dc0d
Modified Files
--------------
doc/src/sgml/monitoring.sgml | 8 ++
src/backend/catalog/system_views.sql | 3 +-
.../libpqwalreceiver/libpqwalreceiver.c | 52 +++++++++++++
src/backend/replication/walreceiver.c | 85 +++++++++++++---------
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.h | 2 +-
src/include/replication/walreceiver.h | 9 ++-
7 files changed, 122 insertions(+), 39 deletions(-)
--
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: Add conninfo to pg_stat_wal_receiver
In-Reply-To: <E1bIMYc-0002L6-6X@gemulon.postgresql.org>
References: <E1bIMYc-0002L6-6X@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