]> granicus.if.org Git - postgresql/commitdiff
Fix pgrowlocks minor coding oversight
authorSimon Riggs <simon@2ndQuadrant.com>
Thu, 30 Mar 2017 18:53:07 +0000 (14:53 -0400)
committerSimon Riggs <simon@2ndQuadrant.com>
Thu, 30 Mar 2017 18:53:07 +0000 (14:53 -0400)
contrib/pgrowlocks/pgrowlocks.c

index 31b8626e3a086aed45d8fa993d12ee998483daf7..120d0eb8dbfb9cf311350943d662813645c4fdd4 100644 (file)
@@ -100,7 +100,7 @@ pgrowlocks(PG_FUNCTION_ARGS)
                rel = heap_openrv(relrv, AccessShareLock);
 
                /* 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) ||
                        is_member_of_role(GetUserId(), DEFAULT_ROLE_STAT_SCAN_TABLES);