From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Grant memory views to pg_read_all_stats.
Date: Wed, 27 Oct 2021 21:10:48 +0000
Message-ID: <E1mfqC8-0002Sp-Fs@gemulon.postgresql.org> (raw)
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(-)
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: jdavis@postgresql.org
Subject: Re: pgsql: Grant memory views to pg_read_all_stats.
In-Reply-To: <E1mfqC8-0002Sp-Fs@gemulon.postgresql.org>
References: <E1mfqC8-0002Sp-Fs@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