Re: [sqlsmith] Planner error on lateral joins
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andreas Seltenreich <seltenreich@gmx.de>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2020-11-30T02:18:15Z
Lists: pgsql-hackers
Attachments
- fix-lateral-relids-for-unused-PHV.patch (text/x-diff) patch
I wrote: > Andreas Seltenreich <seltenreich@gmx.de> writes: >> testing with sqlsmith on master at 3df51ca8b3 produced one instance of >> the following error: >> ERROR: failed to build any 6-way joins > Thanks for the test case! The attached modification to use only > longstanding test tables fails back to 9.5, but succeeds in 9.4. > I've not tried to bisect yet. Seems to be a missed consideration in add_placeholders_to_joinrel. The attached fixes it for me. regards, tom lane
Commits
-
Fix miscomputation of direct_lateral_relids for join relations.
- caecab229abd 11.11 landed
- b1738ff6ab73 14.0 landed
- ab4cbb4bceff 9.6.21 landed
- 8c5da2d512e3 9.5.25 landed
- 785f4462daaf 10.16 landed
- 666a4de939bf 13.2 landed
- 4f728a1f5f06 12.6 landed
-
Undo mistaken tightening in join_is_legal().
- cfe30a72fa80 9.6.0 cited