postgresql/contrib/postgres_fdw
Tom Lane c0c6acdfa0 Fix some planning oversights in postgres_fdw.
Include eval costs of local conditions in remote-estimate mode, and don't
assume the remote eval cost is zero in local-estimate mode.  (The best
we can do with that at the moment is to assume a seqscan, which may well
be wildly pessimistic ... but zero won't do at all.)

To get a reasonable local estimate, we need to know the relpages count
for the remote rel, so improve the ANALYZE code to fetch that rather
than just setting the foreign table's relpages field to zero.
2013-02-22 10:56:36 -05:00
..
expected Fix whole-row references in postgres_fdw. 2013-02-22 09:21:50 -05:00
sql Fix whole-row references in postgres_fdw. 2013-02-22 09:21:50 -05:00
.gitignore Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
connection.c Adjust postgres_fdw's search path handling. 2013-02-22 06:04:49 -05:00
deparse.c Fix some planning oversights in postgres_fdw. 2013-02-22 10:56:36 -05:00
Makefile Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
option.c Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw--1.0.sql Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.c Fix some planning oversights in postgres_fdw. 2013-02-22 10:56:36 -05:00
postgres_fdw.control Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.h Fix some planning oversights in postgres_fdw. 2013-02-22 10:56:36 -05:00