Redo postgres_fdw's planner code so it can handle parameterized paths.

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

Commit: 9cbc4b80ddc10b36c64514104caa69747c386dcf
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2013-03-21T23:44:32Z
Releases: 9.3.0
Redo postgres_fdw's planner code so it can handle parameterized paths.

I wasn't going to ship this without having at least some example of how
to do that.  This version isn't terribly bright; in particular it won't
consider any combinations of multiple join clauses.  Given the cost of
executing a remote EXPLAIN, I'm not sure we want to be very aggressive
about doing that, anyway.

In support of this, refactor generate_implied_equalities_for_indexcol
so that it can be used to extract equivalence clauses that aren't
necessarily tied to an index.

Files