diff --git a/src/backend/executor/nodeSubplan.c b/src/backend/executor/nodeSubplan.c index 14980f86e5e..4800300a670 100644 --- a/src/backend/executor/nodeSubplan.c +++ b/src/backend/executor/nodeSubplan.c @@ -1107,7 +1107,7 @@ ExecSetParamPlan(SubPlanState *node, ExprContext *econtext, QueryDesc *queryDesc SubLinkType subLinkType = subplan->subLinkType; EState *estate = planstate->state; ScanDirection dir = estate->es_direction; - MemoryContext oldcontext = NULL; + volatile MemoryContext oldcontext = NULL; TupleTableSlot *slot; ListCell *pvar; ListCell *l;