diff --git a/src/backend/executor/nodeSubplan.c b/src/backend/executor/nodeSubplan.c index c136f75ac2..1c66a93b82 100644 --- a/src/backend/executor/nodeSubplan.c +++ b/src/backend/executor/nodeSubplan.c @@ -456,6 +456,7 @@ ExecScanSubPlan(SubPlanState *node, result = rowresult; *isNull = rownull; } + ResetExprContext(econtext); } MemoryContextSwitchTo(oldcontext);