diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2014-01-30 14:51:19 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2014-01-30 14:51:19 -0500 |
commit | a4aa854cadc9a8272c08940c93cbaeb3d1c89945 (patch) | |
tree | a2666c320f58bb6335aa741ebb88c9ab5725a61e /contrib/postgres_fdw | |
parent | e3ec8015d073e5aef10c2618904b20c07bddd904 (diff) | |
download | postgresql-a4aa854cadc9a8272c08940c93cbaeb3d1c89945.tar.gz postgresql-a4aa854cadc9a8272c08940c93cbaeb3d1c89945.zip |
Fix bogus handling of "postponed" lateral quals.
When pulling a "postponed" qual from a LATERAL subquery up into the quals
of an outer join, we must make sure that the postponed qual is included
in those seen by make_outerjoininfo(). Otherwise we might compute a
too-small min_lefthand or min_righthand for the outer join, leading to
"JOIN qualification cannot refer to other relations" failures from
distribute_qual_to_rels. Subtler errors in the created plan seem possible,
too, if the extra qual would only affect join ordering constraints.
Per bug #9041 from David Leverton. Back-patch to 9.3.
Diffstat (limited to 'contrib/postgres_fdw')
0 files changed, 0 insertions, 0 deletions