File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -906,10 +906,6 @@ get_all_vacuum_rels(int options)
906
906
MemoryContext oldcontext ;
907
907
Oid relid = classForm -> oid ;
908
908
909
- /* check permissions of relation */
910
- if (!vacuum_is_permitted_for_relation (relid , classForm , options ))
911
- continue ;
912
-
913
909
/*
914
910
* We include partitioned tables here; depending on which operation is
915
911
* to be performed, caller will decide whether to process or ignore
@@ -920,6 +916,10 @@ get_all_vacuum_rels(int options)
920
916
classForm -> relkind != RELKIND_PARTITIONED_TABLE )
921
917
continue ;
922
918
919
+ /* check permissions of relation */
920
+ if (!vacuum_is_permitted_for_relation (relid , classForm , options ))
921
+ continue ;
922
+
923
923
/*
924
924
* Build VacuumRelation(s) specifying the table OIDs to be processed.
925
925
* We omit a RangeVar since it wouldn't be appropriate to complain
You can’t perform that action at this time.
0 commit comments