Skip to content

Commit

Permalink
Revert "PG16: Use new function to check vacuum permission"
Browse files Browse the repository at this point in the history
This reverts commit 8b0ab41 as the commit that introduced the new
function has been reverted upstream.

postgres/postgres@95744599
  • Loading branch information
lkshminarayanan committed Aug 9, 2023
1 parent b5b46a3 commit b96d170
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/process_utility.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b96d170

Please sign in to comment.