Revert "PG16: Use new function to check vacuum permission"

This reverts commit 8b0ab4164 as the commit that introduced the new
function has been reverted upstream.

postgres/postgres@95744599
This commit is contained in:
Lakshmi Narayanan Sreethar 2023-08-09 10:54:29 +01:00 committed by Lakshmi Narayanan Sreethar
parent b5b46a3e58
commit b96d170921

View File

@ -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