From: mdevan.r@gmail.com
To: pgsql-bugs@postgresql.org
Cc: mdevan.r@gmail.com
Subject: BUG #14860: pg_read_all_stats and pg_stat_replication
Date: Wed, 18 Oct 2017 12:40:22 +0000
Message-ID: <20171018124022.8210.3570@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 14860
Logged by: Mahadevan R
Email address: mdevan.r@gmail.com
PostgreSQL version: 10.0
Operating system: any
Description:
User with pg_read_all_stats privilege is not able to read
some columns (listed below) from the pg_stat_replication
view. This is because these columns come from the function
pg_stat_get_wal_senders(), and this function returns non-null
values only for superuser.
To reproduce, set up streaming replication, and a user with
pg_read_all_stats privilege and "select * from
pg_stat_replication". The following columns will be null:
state
sent_lsn
write_lsn
flush_lsn
replay_lsn
sync_priority
sync_state
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: mdevan.r@gmail.com
Subject: Re: BUG #14860: pg_read_all_stats and pg_stat_replication
In-Reply-To: <20171018124022.8210.3570@wrigleys.postgresql.org>
References: <20171018124022.8210.3570@wrigleys.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