1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-08 07:21:33 +03:00

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
This commit is contained in:
Daniel Gustafsson 2024-10-01 00:01:32 +02:00
parent 7702337489
commit 102de3be73

View File

@ -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 * 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 * as part of the result, then check if the user is a member of the
* pg_maintain role, which allows VACUUM, ANALYZE, CLUSTER, REFRESH * 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 && if (mask & ACL_MAINTAIN &&
!(result & ACL_MAINTAIN) && !(result & ACL_MAINTAIN) &&