diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-11-30 12:22:43 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-11-30 12:22:43 -0500 |
commit | 666a4de939bf78df7295c35899a5f2e89eaea382 (patch) | |
tree | 8703c86f722a219fc90a58a9482e3fcd474da0fa /src/backend/jit/llvm/llvmjit_expr.c | |
parent | 74d6fb0a037a7453693418e1069718a7f08ba31e (diff) | |
download | postgresql-666a4de939bf78df7295c35899a5f2e89eaea382.tar.gz postgresql-666a4de939bf78df7295c35899a5f2e89eaea382.zip |
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/backend/jit/llvm/llvmjit_expr.c')
0 files changed, 0 insertions, 0 deletions