From: Daniel Gustafsson Date: Mon, 30 Sep 2024 22:01:32 +0000 (+0200) Subject: Add missing command for pg_maintain in comment X-Git-Url: http://git.postgresql.org/gitweb/-?a=commitdiff_plain;h=102de3be73345a8de443355e055c10762b08cc4c;p=users%2Fc2main%2Fpostgres.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 819045203d..95eb0b1227 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) &&