mirror of https://github.com/citusdata/citus.git
Removes ModifyTable check from set_deparse_plan in ruleutils_14.c
Relevant PG commit: 86dc90056dfdbd9d1b891718d2e5614e3e432f35pull/5209/head
parent
f557bae64c
commit
131062d6b5
|
@ -1674,16 +1674,12 @@ set_deparse_plan(deparse_namespace *dpns, Plan *plan)
|
||||||
* We special-case Append and MergeAppend to pretend that the first child
|
* We special-case Append and MergeAppend to pretend that the first child
|
||||||
* plan is the OUTER referent; we have to interpret OUTER Vars in their
|
* plan is the OUTER referent; we have to interpret OUTER Vars in their
|
||||||
* tlists according to one of the children, and the first one is the most
|
* tlists according to one of the children, and the first one is the most
|
||||||
* natural choice. Likewise special-case ModifyTable to pretend that the
|
* natural choice.
|
||||||
* first child plan is the OUTER referent; this is to support RETURNING
|
|
||||||
* lists containing references to non-target relations.
|
|
||||||
*/
|
*/
|
||||||
if (IsA(plan, Append))
|
if (IsA(plan, Append))
|
||||||
dpns->outer_plan = linitial(((Append *) plan)->appendplans);
|
dpns->outer_plan = linitial(((Append *) plan)->appendplans);
|
||||||
else if (IsA(plan, MergeAppend))
|
else if (IsA(plan, MergeAppend))
|
||||||
dpns->outer_plan = linitial(((MergeAppend *) plan)->mergeplans);
|
dpns->outer_plan = linitial(((MergeAppend *) plan)->mergeplans);
|
||||||
else if (IsA(plan, ModifyTable))
|
|
||||||
dpns->outer_plan = linitial(((ModifyTable *) plan)->plans);
|
|
||||||
else
|
else
|
||||||
dpns->outer_plan = outerPlan(plan);
|
dpns->outer_plan = outerPlan(plan);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue