Add a GetForeignUpperPaths callback function for FDWs.
authorTom Lane <[email protected]>
Tue, 15 Mar 2016 00:04:44 +0000 (20:04 -0400)
committerTom Lane <[email protected]>
Tue, 15 Mar 2016 00:04:48 +0000 (20:04 -0400)
commit101fd9349eddb7e9ed84a239145d5230a9bc7336
tree8b77f95222f0a8342b45e6606a7e77046fdead3e
parentbe6de4c1215a8ad5607b1fcc7e9e6da1de780877
Add a GetForeignUpperPaths callback function for FDWs.

This is basically like the just-added create_upper_paths_hook, but
control is funneled only to the FDW responsible for all the baserels
of the current query; so providing such a callback is much less likely
to add useless overhead than using the hook function is.

The documentation is a bit sketchy.  We'll likely want to improve it,
and/or adjust the call conventions, when we get some experience with
actually using this callback.  Hopefully somebody will find time to
experiment with it before 9.6 feature freeze.
doc/src/sgml/fdwhandler.sgml
src/backend/optimizer/README
src/backend/optimizer/plan/planner.c
src/backend/optimizer/util/pathnode.c
src/include/foreign/fdwapi.h