We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25fff40 commit ceb3158Copy full SHA for ceb3158
contrib/pgrowlocks/pgrowlocks.c
@@ -100,7 +100,7 @@ pgrowlocks(PG_FUNCTION_ARGS)
100
rel = heap_openrv(relrv, AccessShareLock);
101
102
/* check permissions: must have SELECT on table or be in pg_stat_scan_tables */
103
- aclresult = (pg_class_aclcheck(RelationGetRelid(rel), GetUserId(),
+ aclresult = pg_class_aclcheck(RelationGetRelid(rel), GetUserId(),
104
ACL_SELECT) ||
105
is_member_of_role(GetUserId(), DEFAULT_ROLE_STAT_SCAN_TABLES);
106
0 commit comments