Improve handling of CustomPath/CustomPlan(State) children.
Robert Haas <rhaas@postgresql.org>
Improve handling of CustomPath/CustomPlan(State) children. Allow CustomPath to have a list of paths, CustomPlan a list of plans, and CustomPlanState a list of planstates known to the core system, so that custom path/plan providers can more reasonably use this infrastructure for nodes with multiple children. KaiGai Kohei, per a design suggestion from Tom Lane, with some further kibitzing by me.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/custom-scan.sgml | modified | +9 −1 |
| src/backend/commands/explain.c | modified | +22 −0 |
| src/backend/optimizer/plan/createplan.c | modified | +12 −1 |
| src/backend/optimizer/plan/setrefs.c | modified | +8 −0 |
| src/backend/optimizer/plan/subselect.c | modified | +21 −4 |
| src/include/nodes/execnodes.h | modified | +1 −0 |
| src/include/nodes/plannodes.h | modified | +1 −0 |
| src/include/nodes/relation.h | modified | +3 −1 |