summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/backend/postmaster/autovacuum.c5
1 files changed, 4 insertions, 1 deletions
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: