MAINTAIN privilege
MAINTAIN table privilege and pg_maintain role allowing VACUUM, ANALYZE, REINDEX, CLUSTER, REFRESH and LOCK without ownership, with a restricted search_path for maintenance. Introduced in PostgreSQL 17.
Versions
- PostgreSQL 18 · shipped · new · moderate · 3 commits · +58 / -44 lines
- PostgreSQL 17 · shipped · new · moderate · 2 commits · +657 / -212 lines
- PostgreSQL 16 · reverted · improved · moderate · 7 commits · +615 / -597 lines
Threads
- BUG #19475: VACUUM on a partition still warns after MAINTAIN is granted on the partitioned parent
- BUG #18813: Materialized view creation regression when inlining recursive SQL function
- CREATE INDEX regression in 17 RC1 or expected behavior?
- ACL_MAINTAIN, Lack of comment content
- MAINTAIN privilege -- what do we need to un-revert it?
- pg_maintain and USAGE privilege on schema
- un-revert the MAINTAIN privilege and the pg_maintain predefined role
- pgsql: Fix search_path to a safe value during maintenance operations.
- Fix search_path for all maintenance commands
- pgsql: Fix search_path to a safe value during maintenance operations.
- add \dpS to psql
- allow granting CLUSTER, REFRESH MATERIALIZED VIEW, and REINDEX
- Tab completion for GRANT MAINTAIN
- fix and document CLUSTER privileges
- Avoid extra "skipping" messages from VACUUM/ANALYZE
- Rework confusing permissions for LOCK TABLE
- predefined role(s) for VACUUM and ANALYZE
- Flexible permissions for REFRESH MATERIALIZED VIEW