Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit97b7134

Browse files
committed
amcheck: Fix code comments
Code comments were claiming that verify_heapam() was checkingprivileges on the relation it was operating on, but it didn't actuallydo that. Perhaps earlier versions of the patch did that, but now theaccess is regulated by privileges on the function. Remove the wrongcomments.
1 parent69a58bf commit97b7134

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
staticvoid
531530
sanity_check_relation(Relationrel)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp