Add a GetForeignUpperPaths callback function for FDWs.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 101fd9349eddb7e9ed84a239145d5230a9bc7336
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-03-15T00:04:48Z
Releases: 9.6.0
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

Documentation touched