-
- Downloads
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.
Showing
- contrib/postgres_fdw/deparse.c 235 additions, 164 deletionscontrib/postgres_fdw/deparse.c
- contrib/postgres_fdw/expected/postgres_fdw.out 22 additions, 1 deletioncontrib/postgres_fdw/expected/postgres_fdw.out
- contrib/postgres_fdw/postgres_fdw.c 591 additions, 350 deletionscontrib/postgres_fdw/postgres_fdw.c
- contrib/postgres_fdw/postgres_fdw.h 7 additions, 4 deletionscontrib/postgres_fdw/postgres_fdw.h
- contrib/postgres_fdw/sql/postgres_fdw.sql 4 additions, 0 deletionscontrib/postgres_fdw/sql/postgres_fdw.sql
- src/backend/optimizer/path/equivclass.c 20 additions, 15 deletionssrc/backend/optimizer/path/equivclass.c
- src/backend/optimizer/path/indxpath.c 29 additions, 12 deletionssrc/backend/optimizer/path/indxpath.c
- src/include/optimizer/paths.h 11 additions, 7 deletionssrc/include/optimizer/paths.h
Loading
Please register or sign in to comment