pg_read_all_stats and pg_stat_replication in postgres 10.

From: Mahadevan R <mdevan(dot)r(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: pg_read_all_stats and pg_stat_replication in postgres 10.
Date: 2017-10-18 12:16:07
Message-ID: CAAP+Li9zo1es45ci6TfhWJaAhj_Fa7_xyc9KoEMAYWQAkErGkg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hello,

In Postgres 10 (release version installed from apt repo on Debian 9), the
following columns of the pg_stat_replication view are returned as null for
a user who has been granted pg_read_all_stats:

state
sent_lsn
write_lsn
flush_lsn
replay_lsn
sync_priority
sync_state

Other columns (like client_addr, backend_start) have valid values. Other
views (like pg_stat_activity) also have valid values. Granting pg_monitor
does not help. Only superuser is able to retrieve these values (like it was
in 9.6).

Is this a bug?

Thanks,
-Mahadevan

Browse pgsql-bugs by date

  From Date Subject
Next Message mdevan.r 2017-10-18 12:40:22 BUG #14860: pg_read_all_stats and pg_stat_replication
Previous Message Magnus Hagander 2017-10-18 08:17:54 Re: pgbouncer-1.7.2-7.rhel6.x86_64.rpm fails to install on AMI