Add basic regression tests for semi/antijoin recognition.
Tom Lane <tgl@sss.pgh.pa.us>
Add basic regression tests for semi/antijoin recognition. Add some simple tests that the planner recognizes all the standard idioms for SEMI and ANTI joins. Failure to optimize in this way won't necessarily cause any visible change in query results, so check the plans. We had no similar coverage before, at least for some variants of antijoin, as noted by Richard Guo. Discussion: https://postgr.es/m/CAMbWs4-mvPPCJ1W6iK6dD5HiNwoJdi6mZp=-7mE8N9Sh+cd0tQ@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/test/regress/expected/join.out | modified | +63 −0 |
| src/test/regress/sql/join.sql | modified | +25 −0 |
Discussion
- Making Vars outer-join aware 60 messages · 2022-07-01 → 2023-07-23