|
|
@ -2480,9 +2480,9 @@ ExecFindMatchingSubPlans(PartitionPruneState *prunestate, |
|
|
|
&result); |
|
|
|
&result); |
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Expression eval may have used space in ExprContext too. |
|
|
|
* Expression eval may have used space in ExprContext too. Avoid |
|
|
|
* Avoid accessing exec_context during initial pruning, as it is not |
|
|
|
* accessing exec_context during initial pruning, as it is not valid |
|
|
|
* valid at that stage. |
|
|
|
* at that stage. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
if (!initial_prune && pprune->exec_pruning_steps) |
|
|
|
if (!initial_prune && pprune->exec_pruning_steps) |
|
|
|
ResetExprContext(pprune->exec_context.exprcontext); |
|
|
|
ResetExprContext(pprune->exec_context.exprcontext); |
|
|
|