]> granicus.if.org Git - postgresql/commit
Redo postgres_fdw's planner code so it can handle parameterized paths.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 21 Mar 2013 23:43:59 +0000 (19:43 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 21 Mar 2013 23:44:32 +0000 (19:44 -0400)
commit9cbc4b80ddc10b36c64514104caa69747c386dcf
tree56ff643469573d7f83c9bbc89ab44b797ab988cd
parent08af1a0a2ae8fbbd9949d9fa0f7583f6c09cf4ec
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.
contrib/postgres_fdw/deparse.c
contrib/postgres_fdw/expected/postgres_fdw.out
contrib/postgres_fdw/postgres_fdw.c
contrib/postgres_fdw/postgres_fdw.h
contrib/postgres_fdw/sql/postgres_fdw.sql
src/backend/optimizer/path/equivclass.c
src/backend/optimizer/path/indxpath.c
src/include/optimizer/paths.h