]> granicus.if.org Git - postgresql/commit
Simplify API for initially hooking custom-path providers into the planner.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 21 Nov 2014 19:05:46 +0000 (14:05 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 21 Nov 2014 19:05:46 +0000 (14:05 -0500)
commitc2ea2285e978d9289084846a3343cef7d261d880
tree97546a6da2b2eaa1275d311a04810658724b5547
parent4077fb4d1d34ad04dfb95ba676c2b43ea1f1da53
Simplify API for initially hooking custom-path providers into the planner.

Instead of register_custom_path_provider and a CreateCustomScanPath
callback, let's just provide a standard function hook in set_rel_pathlist.
This is more flexible than what was previously committed, is more like the
usual conventions for planner hooks, and requires less support code in the
core.  We had discussed this design (including centralizing the
set_cheapest() calls) back in March or so, so I'm not sure why it wasn't
done like this already.
src/backend/optimizer/path/allpaths.c
src/backend/optimizer/util/pathnode.c
src/include/nodes/relation.h
src/include/optimizer/pathnode.h
src/include/optimizer/paths.h