Redesign PlanForeignScan API to allow multiple paths for a foreign table.

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

Commit: 6b289942bfdbbfa2955cedc591c522822a7ffbfe
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2012-03-05T21:15:59Z
Releases: 9.2.0
Redesign PlanForeignScan API to allow multiple paths for a foreign table.

The original API specification only allowed an FDW to create a single
access path, which doesn't seem like a terribly good idea in hindsight.
Instead, move the responsibility for building the Path node and calling
add_path() into the FDW's PlanForeignScan function.  Now, it can do that
more than once if appropriate.  There is no longer any need for the
transient FdwPlan struct, so get rid of that.

Etsuro Fujita, Shigeru Hanada, Tom Lane

Files