Grant memory views to pg_read_all_stats.
Jeff Davis <jdavis@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/catalogs.sgml | modified | +4 −2 |
| src/backend/catalog/system_views.sql | modified | +4 −0 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/test/regress/expected/privileges.out | modified | +47 −0 |
| src/test/regress/sql/privileges.sql | modified | +25 −0 |
Documentation touched
Discussion
- should we allow users with a predefined role to access pg_backend_memory_contexts view and pg_log_backend_memory_contexts function? 38 messages · 2021-10-07 → 2021-10-25