* 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. */
| 3712 | * It could now be refactored out of existence. |
| 3713 | */ |
| 3714 | void |
| 3715 | EvalPlanQualSetPlan(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. |
no test coverage detected