aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2024-10-01 00:01:32 +0200
committerDaniel Gustafsson <dgustafsson@postgresql.org>2024-10-01 00:01:32 +0200
commit102de3be73345a8de443355e055c10762b08cc4c (patch)
tree4d2c02dccc5197ab212144e62ab7f8eea1db42f3
parent7702337489810f645b3501d99215c2b525c5abca (diff)
downloadpostgresql-102de3be73345a8de443355e055c10762b08cc4c.tar.gz
postgresql-102de3be73345a8de443355e055c10762b08cc4c.zip
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
-rw-r--r--src/backend/catalog/aclchk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/catalog/aclchk.c b/src/backend/catalog/aclchk.c
index 819045203dd..95eb0b12277 100644
--- a/src/backend/catalog/aclchk.c
+++ b/src/backend/catalog/aclchk.c
@@ -3449,7 +3449,7 @@ pg_class_aclmask_ext(Oid table_oid, Oid roleid, AclMode mask,
* Check if ACL_MAINTAIN is being checked and, if so, and not already set
* as part of the result, then check if the user is a member of the
* pg_maintain role, which allows VACUUM, ANALYZE, CLUSTER, REFRESH
- * MATERIALIZED VIEW, and REINDEX on all relations.
+ * MATERIALIZED VIEW, REINDEX, and LOCK TABLE on all relations.
*/
if (mask & ACL_MAINTAIN &&
!(result & ACL_MAINTAIN) &&