pgsql: Provide non-superuser predefined roles for vacuum and analyze - Mailing list pgsql-committers

From Andrew Dunstan
Subject pgsql: Provide non-superuser predefined roles for vacuum and analyze
Date
Msg-id E1ozhe8-001BSR-2F@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Provide non-superuser predefined roles for vacuum and analyze

This provides two new predefined roles: pg_vacuum_all_tables and
pg_analyze_all_tables. Roles which have been granted these roles can
perform vacuum or analyse respectively on any or all tables as if they
were a superuser. This removes the need to grant superuser privilege to
roles just so they can perform vacuum and/or analyze.

Nathan Bossart

Reviewed by: Bharath Rupireddy, Kyotaro Horiguchi, Stephen Frost, Robert
Haas, Mark Dilger, Tom Lane, Corey Huinker, David G. Johnston, Michael
Paquier.

Discussion: https://postgr.es/m/20220722203735.GB3996698@nathanxps13

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4441fc704d7048b2f1f039cc74b72bd23e7e36d0

Modified Files
--------------
doc/src/sgml/ref/analyze.sgml            | 10 +++++++---
doc/src/sgml/ref/vacuum.sgml             | 10 +++++++---
doc/src/sgml/user-manag.sgml             | 12 ++++++++++++
src/backend/catalog/aclchk.c             | 20 ++++++++++++++++++++
src/include/catalog/catversion.h         |  2 +-
src/include/catalog/pg_authid.dat        | 10 ++++++++++
src/test/regress/expected/privileges.out | 25 +++++++++++++++++++++++++
src/test/regress/sql/privileges.sql      | 24 ++++++++++++++++++++++++
8 files changed, 106 insertions(+), 7 deletions(-)


pgsql-committers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: pgsql: doc: Clarify unit of logging for log_temp_files
Next
From: Andres Freund
Date:
Subject: pgsql: meson: Fix binary mismatch for MSVC plperl vs gcc built perl lib