]> granicus.if.org Git - postgresql/commit
postgres_fdw: Fix crash when pushing down multiple joins.
authorRobert Haas <rhaas@postgresql.org>
Wed, 23 Mar 2016 16:28:01 +0000 (12:28 -0400)
committerRobert Haas <rhaas@postgresql.org>
Wed, 23 Mar 2016 16:28:01 +0000 (12:28 -0400)
commit3151f16e1874db82ed85a005dac15368903ca9fb
treee527ae211ee72b58a0d0edda17d005d5dd307360
parent44ca4022f3f9297bab5cbffdd97973dbba1879ed
postgres_fdw: Fix crash when pushing down multiple joins.

A join clause might mention multiple relations on either side, so it
need not be the case that a given joinrel's constituent relations are
all on one side of the join clause or all on the other.

Report by Rajkumar Raghuwanshi.  Analysis and fix by Michael Paquier
and Ashutosh Bapat.
contrib/postgres_fdw/expected/postgres_fdw.out
contrib/postgres_fdw/postgres_fdw.c
contrib/postgres_fdw/sql/postgres_fdw.sql