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
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
option.c
postgres_fdw--1.0.sql
postgres_fdw.c Fix some planning oversights in postgres_fdw. 2013-02-22 10:56:36 -05:00
postgres_fdw.control
postgres_fdw.h Fix some planning oversights in postgres_fdw. 2013-02-22 10:56:36 -05:00