postgres_fdw: Fix the fix for crash when pushing down multiple joins.
Commit 3151f16e1874db82ed85a005dac15368903ca9fb was intended to be
a commit of a patch from Ashutosh Bapat, but instead I mistakenly
committed an earlier version from Michael Paquier (because both
patches were submitted with the same filename, and I confused them).
Michael's patch fixes the crash but doesn't actually implement the
correct test.
Repair the incorrect logic, and also expand the comments considerably
so that this is all more clear.
Ashutosh Bapat and Robert Haas
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/02a568a02769ca626591039f460109369bf05dc2
Modified Files
--------------
contrib/postgres_fdw/expected/postgres_fdw.out | 68 ++++++++++++++++++++++++++
contrib/postgres_fdw/postgres_fdw.c | 36 ++++++++++++--
contrib/postgres_fdw/sql/postgres_fdw.sql | 10 ++++
3 files changed, 110 insertions(+), 4 deletions(-)