summaryrefslogtreecommitdiff
path: root/src/tutorial
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
commitab4cbb4bceff6f939f12d0edbe84004d85ebea16 (patch)
treefb45b3978be677c5454f8b3b0d42d4a813a00374 /src/tutorial
parent3f59a05f0fa8c4f5f43fe0f5fed3291cf2cf224a (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')
0 files changed, 0 insertions, 0 deletions