summaryrefslogtreecommitdiff
path: root/src/tutorial/basics.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-11-30 12:22:43 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2020-11-30 12:22:43 -0500
commit8c5da2d512e3e00c55f3f8fb7af12dfabc5b9284 (patch)
tree3da1197412384b9bba1f4c58871c81b9d2498174 /src/tutorial/basics.source
parente2d5de15003d17e2f5c91a5c9151528031a97014 (diff)
Fix miscomputation of direct_lateral_relids for join relations.
If a PlaceHolderVar is to be evaluated at a join relation, but its value is only needed there and not at higher levels, we neglected to update the joinrel's direct_lateral_relids to include the PHV's source rel. This causes problems because join_is_legal() then won't allow joining the joinrel to the PHV's source rel at all, leading to "failed to build any N-way joins" planner failures. Per report from Andreas Seltenreich. Back-patch to 9.5 where the problem originated. Discussion: https://postgr.es/m/87blfgqa4t.fsf@aurora.ydns.eu
Diffstat (limited to 'src/tutorial/basics.source')
0 files changed, 0 insertions, 0 deletions