Content-Length: 278188 | pFad | http://github.com/postgrespro/postgres/commit/d46a9792a8ebbbed7792b26d6dc0222d2bbde223

52 Clean up useless "skipping" messages for VACUUM/ANALYZE. · postgrespro/postgres@d46a979 · GitHub
Skip to content

Commit d46a979

Browse files
committed
Clean up useless "skipping" messages for VACUUM/ANALYZE.
When VACUUM/ANALYZE are run on an entire database, it warns of skipping relations for which the user doesn't have sufficient privileges. That only makes sense for tables, so skip such messages for indexes, etc. Reviewed-by: Nathan Bossart Discussion: https://postgr.es/m/c0a85c2e83158560314b576b6241c8ed0aea1745.camel%40j-davis.com
1 parent c44f633 commit d46a979

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
MemoryContext oldcontext;
907907
Oid relid = 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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/d46a9792a8ebbbed7792b26d6dc0222d2bbde223

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy