projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7702337
)
Add missing command for pg_maintain in comment
author
Daniel Gustafsson
<
[email protected]
>
Mon, 30 Sep 2024 22:01:32 +0000
(
00:01
+0200)
committer
Daniel Gustafsson
<
[email protected]
>
Mon, 30 Sep 2024 22:01:32 +0000
(
00:01
+0200)
The comment in pg_class_aclmask_ext() which lists the allowed commands
for the pg_maintain role lacked LOCK TABLE.
Reported-by: Yusuke Sugie <
[email protected]
>
Reviewed-by: Yugo Nagata <
[email protected]
>
Discussion: https://postgr.es/m/
034d3c60f5daba1919cd90f236b2e22d
@oss.nttdata.com
src/backend/catalog/aclchk.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/catalog/aclchk.c
b/src/backend/catalog/aclchk.c
index 819045203dd1b0cd752ed9078280e7b8df591248..95eb0b12277b11655cefecc24a928cd9f1a43c95 100644
(file)
--- 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) &&