mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-01 14:01:23 +02: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:
parent
27f5c712b2
commit
e33967b13b
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user