diff --git a/src/process_utility.c b/src/process_utility.c index 5b581251ea7..ff8e2976a1e 100644 --- a/src/process_utility.c +++ b/src/process_utility.c @@ -822,19 +822,11 @@ ts_get_all_vacuum_rels(bool is_vacuumcmd) relid = classform->oid; /* check permissions of relation */ -#if PG16_LT if (!vacuum_is_relation_owner(relid, classform, is_vacuumcmd ? VACOPT_VACUUM : VACOPT_ANALYZE)) continue; -#else - if (!vacuum_is_permitted_for_relation(relid, - classform, - is_vacuumcmd ? VACOPT_VACUUM : VACOPT_ANALYZE)) - continue; -#endif - /* * We include partitioned tables here; depending on which operation is * to be performed, caller will decide whether to process or ignore