Skip to content

Commit 102de3b

Browse files
Add missing command for pg_maintain in comment
The comment in pg_class_aclmask_ext() which lists the allowed commands for the pg_maintain role lacked LOCK TABLE. Reported-by: Yusuke Sugie <btsugieyuusuke@oss.nttdata.com> Reviewed-by: Yugo Nagata <nagata@sraoss.co.jp> Discussion: https://postgr.es/m/034d3c60f5daba1919cd90f236b2e22d@oss.nttdata.com
1 parent 7702337 commit 102de3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/catalog/aclchk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3449,7 +3449,7 @@ pg_class_aclmask_ext(Oid table_oid, Oid roleid, AclMode mask,
34493449
* Check if ACL_MAINTAIN is being checked and, if so, and not already set
34503450
* as part of the result, then check if the user is a member of the
34513451
* pg_maintain role, which allows VACUUM, ANALYZE, CLUSTER, REFRESH
3452-
* MATERIALIZED VIEW, and REINDEX on all relations.
3452+
* MATERIALIZED VIEW, REINDEX, and LOCK TABLE on all relations.
34533453
*/
34543454
if (mask & ACL_MAINTAIN &&
34553455
!(result & ACL_MAINTAIN) &&

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy