diff --git a/src/backend/postmaster/autovacuum.c b/src/backend/postmaster/autovacuum.c index c0e2e00a7e..585d28148c 100644 --- a/src/backend/postmaster/autovacuum.c +++ b/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: