mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Fix pgrowlocks minor coding oversight
This commit is contained in:
@ -100,7 +100,7 @@ pgrowlocks(PG_FUNCTION_ARGS)
|
|||||||
rel = heap_openrv(relrv, AccessShareLock);
|
rel = heap_openrv(relrv, AccessShareLock);
|
||||||
|
|
||||||
/* check permissions: must have SELECT on table or be in pg_stat_scan_tables */
|
/* check permissions: must have SELECT on table or be in pg_stat_scan_tables */
|
||||||
aclresult = (pg_class_aclcheck(RelationGetRelid(rel), GetUserId(),
|
aclresult = pg_class_aclcheck(RelationGetRelid(rel), GetUserId(),
|
||||||
ACL_SELECT) ||
|
ACL_SELECT) ||
|
||||||
is_member_of_role(GetUserId(), DEFAULT_ROLE_STAT_SCAN_TABLES);
|
is_member_of_role(GetUserId(), DEFAULT_ROLE_STAT_SCAN_TABLES);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user