pgsql: Allow pg_read_all_stats to access all stats views again

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Allow pg_read_all_stats to access all stats views again
Date: 2020-04-20 11:05:37
Message-ID: E1jQUF7-0007AQ-Jz@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d0bb66572e3326b40515cbf62ec11b3339bbf914

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

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2020-04-20 16:29:46 pgsql: Doc: update sections 9.5 and 9.6 for new function table layout.
Previous Message Tom Lane 2020-04-19 21:45:07 pgsql: Doc: update the rest of section 9.4 for new function table layou