Grant memory views to pg_read_all_stats.
authorJeff Davis <jdavis@postgresql.org>
Wed, 27 Oct 2021 19:37:09 +0000 (12:37 -0700)
committerJeff Davis <jdavis@postgresql.org>
Wed, 27 Oct 2021 21:06:30 +0000 (14:06 -0700)
commit77ea4f94393eb4a16df32b573bf053bedaef2e09
treec4849ddde9fbba92cbf1ea620741cb48ede59123
parent8af57ad81578f825ac8c46840c841833db205106
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
doc/src/sgml/catalogs.sgml
src/backend/catalog/system_views.sql
src/include/catalog/catversion.h
src/test/regress/expected/privileges.out
src/test/regress/sql/privileges.sql