MemoryContext oldcontext;
Oid relid = classForm->oid;
- /* check permissions of relation */
- if (!vacuum_is_permitted_for_relation(relid, classForm, options))
- continue;
-
/*
* We include partitioned tables here; depending on which operation is
* to be performed, caller will decide whether to process or ignore
classForm->relkind != RELKIND_PARTITIONED_TABLE)
continue;
+ /* check permissions of relation */
+ if (!vacuum_is_permitted_for_relation(relid, classForm, options))
+ continue;
+
/*
* Build VacuumRelation(s) specifying the table OIDs to be processed.
* We omit a RangeVar since it wouldn't be appropriate to complain