MCPcopy Create free account
hub / github.com/apache/cloudberry / EvalPlanQualSetPlan

Function EvalPlanQualSetPlan

src/backend/executor/execMain.c:3714–3723  ·  view source on GitHub ↗

* EvalPlanQualSetPlan -- set or change subplan of an EPQState. * * We used to need this so that ModifyTable could deal with multiple subplans. * It could now be refactored out of existence. */

Source from the content-addressed store, hash-verified

3712 * It could now be refactored out of existence.
3713 */
3714void
3715EvalPlanQualSetPlan(EPQState *epqstate, Plan *subplan, List *auxrowmarks)
3716{
3717 /* If we have a live EPQ query, shut it down */
3718 EvalPlanQualEnd(epqstate);
3719 /* And set/change the plan pointer */
3720 epqstate->plan = subplan;
3721 /* The rowmarks depend on the plan, too */
3722 epqstate->arowMarks = auxrowmarks;
3723}
3724
3725/*
3726 * Return, and create if necessary, a slot for an EPQ test tuple.

Callers 1

ExecInitModifyTableFunction · 0.85

Calls 1

EvalPlanQualEndFunction · 0.85

Tested by

no test coverage detected