Add a GetForeignUpperPaths callback function for FDWs.
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/fdwhandler.sgml | modified | +40 −3 |
| src/backend/optimizer/plan/planner.c | modified | +10 −6 |
| src/backend/optimizer/README | modified | +4 −1 |
| src/backend/optimizer/util/pathnode.c | modified | +7 −7 |
| src/include/foreign/fdwapi.h | modified | +6 −0 |