postgresql/contrib/postgres_fdw
Robert Haas 5b1f9ce1d9 postgres_fdw: Don't push down certain full joins.
If there's a filter condition on either side of a full outer join,
it is neither correct to attach it to the join's ON clause nor to
throw it into the toplevel WHERE clause.  Just don't push down the
join in that case.

To maximize the number of cases where we can still push down full
joins, push inner join conditions into the ON clause at the first
opportunity rather than postponing them to the top-level WHERE
clause.  This produces nicer SQL, anyway.

This bug was introduced in e4106b2528.

Ashutosh Bapat, per report from Rajkumar Raghuwanshi.
2016-04-20 23:54:19 -04:00
..
expected postgres_fdw: Don't push down certain full joins. 2016-04-20 23:54:19 -04:00
sql postgres_fdw: Don't push down certain full joins. 2016-04-20 23:54:19 -04:00
.gitignore
connection.c Use %u not %d to print OIDs. 2016-02-08 11:06:23 -05:00
deparse.c postgres_fdw: Clean up handling of system columns. 2016-04-15 12:08:14 -04:00
Makefile Allow postgres_fdw to ship extension funcs/operators for remote execution. 2015-11-03 18:42:18 -05:00
option.c postgres_fdw: Allow fetch_size to be set per-table or per-server. 2016-02-03 09:07:35 -05:00
postgres_fdw--1.0.sql
postgres_fdw.c postgres_fdw: Don't push down certain full joins. 2016-04-20 23:54:19 -04:00
postgres_fdw.control
postgres_fdw.h Directly modify foreign tables. 2016-03-18 13:55:52 -04:00
shippable.c Update copyright for 2016 2016-01-02 13:33:40 -05:00