From: Daniel Gustafsson Date: Mon, 30 Sep 2024 22:01:32 +0000 (+0200) Subject: Add missing command for pg_maintain in comment X-Git-Tag: REL_18_BETA1~1822 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=102de3be73345a8de443355e055c10762b08cc4c;p=postgresql.git 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 Reviewed-by: Yugo Nagata Discussion: https://postgr.es/m/034d3c60f5daba1919cd90f236b2e22d@oss.nttdata.com --- 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) &&