Skip to content

Commit 97b7134

Browse files
committed
amcheck: Fix code comments
Code comments were claiming that verify_heapam() was checking privileges on the relation it was operating on, but it didn't actually do that. Perhaps earlier versions of the patch did that, but now the access is regulated by privileges on the function. Remove the wrong comments.
1 parent 69a58bf commit 97b7134

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

contrib/amcheck/verify_heapam.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ verify_heapam(PG_FUNCTION_ARGS)
298298
rsinfo->setDesc = ctx.tupdesc;
299299
MemoryContextSwitchTo(old_context);
300300

301-
/* Open relation, check relkind and access method, and check privileges */
301+
/* Open relation, check relkind and access method */
302302
ctx.rel = relation_open(relid, AccessShareLock);
303303
sanity_check_relation(ctx.rel);
304304

@@ -524,8 +524,7 @@ verify_heapam(PG_FUNCTION_ARGS)
524524
}
525525

526526
/*
527-
* Check that a relation's relkind and access method are both supported,
528-
* and that the caller has select privilege on the relation.
527+
* Check that a relation's relkind and access method are both supported.
529528
*/
530529
static void
531530
sanity_check_relation(Relation rel)

0 commit comments

Comments
 (0)