pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Magnus Hagander <magnus@hagander.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow pg_read_all_stats to access all stats views again
Date: Mon, 20 Apr 2020 11:05:37 +0000
Message-ID: <E1jQUF7-0007AN-JS@gemulon.postgresql.org> (raw)

Allow pg_read_all_stats to access all stats views again

The views pg_stat_progress_* had not gotten the memo that
pg_read_all_stats is supposed to be able to read all statistics. Also
make a pass over all text-returning pg_stat_xyz functions that could
return "insufficient privilege" and make sure they also respect
pg_read_all_status.

Reported-by: Andrey M. Borodin
Reviewed-by: Andrey M. Borodin, Kyotaro Horiguchi
Discussion: https://postgr.es/m/13145F2F-8458-4977-9D2D-7B2E862E5722@yandex-team.ru

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3d4652f67d1f6c896f4bc836e08f38aaa0b3de41

Modified Files
--------------
src/backend/utils/adt/pgstatfuncs.c | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1jQUF7-0007AN-JS@gemulon.postgresql.org>
Permalink:  ../E1jQUF7-0007AN-JS@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jQUF7-0007AN-JS@gemulon.postgresql.org

 · 

reply

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: magnus@hagander.net
  Subject: Re: pgsql: Allow pg_read_all_stats to access all stats views again
  In-Reply-To: <E1jQUF7-0007AN-JS@gemulon.postgresql.org>
  References: <E1jQUF7-0007AN-JS@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