Allow callers of create_foreignscan_path to specify nondefault PathTarget.

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

Commit: 28048cbaa285b8ac46940e4b39f985d9885fc698
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-03-14T21:31:28Z
Releases: 9.6.0
Allow callers of create_foreignscan_path to specify nondefault PathTarget.

Although the default choice of rel->reltarget should typically be
sufficient for scan or join paths, it's not at all sufficient for the
purposes PathTargets were invented for; in particular not for
upper-relation Paths.  So break API compatibility by adding a PathTarget
argument to create_foreignscan_path().  To ease updating of existing
code, accept a NULL value of the argument as selecting rel->reltarget.

Files