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 | caecab229abdcac05bdeb8ac94e78194dfc71f5c (patch) | |
tree | b1d1b56dd72a4bf9b7e7a4b6fa497d22aadb1981 /src/backend/parser/parse_utilcmd.c | |
parent | 777ac03a6823edf7dcf5a184c8a5d74f04a4c430 (diff) | |
download | postgresql-caecab229abdcac05bdeb8ac94e78194dfc71f5c.tar.gz postgresql-caecab229abdcac05bdeb8ac94e78194dfc71f5c.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/parser/parse_utilcmd.c')
0 files changed, 0 insertions, 0 deletions