Thread: pgsql: Grant memory views to pg_read_all_stats.

pgsql: Grant memory views to pg_read_all_stats.

From
Jeff Davis
Date:
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(-)