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

Commitd46a979

Browse files
committed
Clean up useless "skipping" messages for VACUUM/ANALYZE.
When VACUUM/ANALYZE are run on an entire database, it warns ofskipping relations for which the user doesn't have sufficientprivileges. That only makes sense for tables, so skip such messagesfor indexes, etc.Reviewed-by: Nathan BossartDiscussion:https://postgr.es/m/c0a85c2e83158560314b576b6241c8ed0aea1745.camel%40j-davis.com
1 parentc44f633 commitd46a979

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/backend/commands/vacuum.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -906,10 +906,6 @@ get_all_vacuum_rels(int options)
906906
MemoryContextoldcontext;
907907
Oidrelid=classForm->oid;
908908

909-
/* check permissions of relation */
910-
if (!vacuum_is_permitted_for_relation(relid,classForm,options))
911-
continue;
912-
913909
/*
914910
* We include partitioned tables here; depending on which operation is
915911
* to be performed, caller will decide whether to process or ignore
@@ -920,6 +916,10 @@ get_all_vacuum_rels(int options)
920916
classForm->relkind!=RELKIND_PARTITIONED_TABLE)
921917
continue;
922918

919+
/* check permissions of relation */
920+
if (!vacuum_is_permitted_for_relation(relid,classForm,options))
921+
continue;
922+
923923
/*
924924
* Build VacuumRelation(s) specifying the table OIDs to be processed.
925925
* We omit a RangeVar since it wouldn't be appropriate to complain

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp