mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-14 17:43:34 +08:00
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:
parent
b5b46a3e58
commit
b96d170921
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user