Comment on expectations for AutoVacuumWorkItem handlers.

This might prevent a repeat of the brin_summarize_range() vulnerability
that commit a117cebd63 fixed.
pull/137/head
Noah Misch 3 years ago
parent 27f5c712b2
commit e33967b13b
  1. 5
      src/backend/postmaster/autovacuum.c

@ -2655,7 +2655,10 @@ perform_work_item(AutoVacuumWorkItem *workitem)
/* Use PortalContext for any per-work-item allocations */
MemoryContextSwitchTo(PortalContext);
/* have at it */
/*
* Have at it. Functions called here are responsible for any required
* user switch and sandbox.
*/
switch (workitem->avw_type)
{
case AVW_BRINSummarizeRange:

Loading…
Cancel
Save