aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonb_util.c
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
commitb1738ff6ab73203cbbc02d7fb82941dbc061d301 (patch)
treea2afd94d9f24e3f654d11a58d1276788d6630a1d /src/backend/utils/adt/jsonb_util.c
parent873ea9ee692e7829614f913685db540b17998ba6 (diff)
downloadpostgresql-b1738ff6ab73203cbbc02d7fb82941dbc061d301.tar.gz
postgresql-b1738ff6ab73203cbbc02d7fb82941dbc061d301.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/utils/adt/jsonb_util.c')
0 files changed, 0 insertions, 0 deletions