summaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-01-30 14:51:16 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2014-01-30 14:51:16 -0500
commit043f6ff05d0a5140dfe25faf277ec9f1d7169005 (patch)
tree27542bd423573ef86ba25c4c3c4188fc21169ea7 /src/tutorial/funcs.c
parentc29a6dd54860082153ec7fedb603a4c2c37b1445 (diff)
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 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions