pgsql: Grant memory views to pg_read_all_stats. - Mailing list pgsql-committers

From Jeff Davis
Subject pgsql: Grant memory views to pg_read_all_stats.
Date
Msg-id E1mfqC8-0002Sp-Fs@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Grant memory views to pg_read_all_stats.

Grant privileges on views pg_backend_memory_contexts and
pg_shmem_allocations to the role pg_read_all_stats. Also grant on the
underlying functions that those views depend on.

Author: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Reviewed-by: Nathan Bossart <bossartn@amazon.com>
Discussion: https://postgr.es/m/CALj2ACWAZo3Ar_EVsn2Zf9irG+hYK3cmh1KWhZS_Od45nd01RA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/77ea4f94393eb4a16df32b573bf053bedaef2e09

Modified Files
--------------
doc/src/sgml/catalogs.sgml               |  6 ++--
src/backend/catalog/system_views.sql     |  4 +++
src/include/catalog/catversion.h         |  2 +-
src/test/regress/expected/privileges.out | 47 ++++++++++++++++++++++++++++++++
src/test/regress/sql/privileges.sql      | 25 +++++++++++++++++
5 files changed, 81 insertions(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: Re: pgsql: Refactor the sslfiles Makefile target for ease of use
Next
From: Peter Geoghegan
Date:
Subject: pgsql: Remove obsolete nbtree LP_DEAD item comments.