]> granicus.if.org Git - postgresql/commit
Rearrange CustomScan API.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 21 Nov 2014 23:21:46 +0000 (18:21 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 21 Nov 2014 23:21:46 +0000 (18:21 -0500)
commit447770404cce5ce86174fa4809784c4e5d0a0a76
tree286179c879751edbebffd9fe314c6878a0559edb
parentc2ea2285e978d9289084846a3343cef7d261d880
Rearrange CustomScan API.

Make it work more like FDW plans do: instead of assuming that there are
expressions in a CustomScan plan node that the core code doesn't know
about, insist that all subexpressions that need planner attention be in
a "custom_exprs" list in the Plan representation.  (Of course, the
custom plugin can break the list apart again at executor initialization.)
This lets us revert the parts of the patch that exposed setrefs.c and
subselect.c processing to the outside world.

Also revert the GetSpecialCustomVar stuff in ruleutils.c; that concept
may work in future, but it's far from fully baked right now.
src/backend/nodes/copyfuncs.c
src/backend/nodes/outfuncs.c
src/backend/optimizer/plan/createplan.c
src/backend/optimizer/plan/setrefs.c
src/backend/optimizer/plan/subselect.c
src/backend/utils/adt/ruleutils.c
src/include/executor/nodeCustom.h
src/include/nodes/execnodes.h
src/include/nodes/plannodes.h
src/include/nodes/relation.h
src/include/optimizer/planmain.h