mirror of
https://github.com/postgres/postgres.git
synced 2025-08-12 15:23:02 +03:00
Comment on expectations for AutoVacuumWorkItem handlers.
This might prevent a repeat of the brin_summarize_range() vulnerability
that commit a117cebd63
fixed.
This commit is contained in:
@@ -2655,7 +2655,10 @@ perform_work_item(AutoVacuumWorkItem *workitem)
|
|||||||
/* Use PortalContext for any per-work-item allocations */
|
/* Use PortalContext for any per-work-item allocations */
|
||||||
MemoryContextSwitchTo(PortalContext);
|
MemoryContextSwitchTo(PortalContext);
|
||||||
|
|
||||||
/* have at it */
|
/*
|
||||||
|
* Have at it. Functions called here are responsible for any required
|
||||||
|
* user switch and sandbox.
|
||||||
|
*/
|
||||||
switch (workitem->avw_type)
|
switch (workitem->avw_type)
|
||||||
{
|
{
|
||||||
case AVW_BRINSummarizeRange:
|
case AVW_BRINSummarizeRange:
|
||||||
|
Reference in New Issue
Block a user