Handle SubPlan cases in find_nonnullable_rels/vars.
Tom Lane <tgl@sss.pgh.pa.us>
Handle SubPlan cases in find_nonnullable_rels/vars. We can use some variants of SubPlan to deduce that Vars appearing in the testexpr must be non-null. Richard Guo Discussion: https://postgr.es/m/CAMbWs4-jV=199A2Y_6==99dYnpnmaO_Wz_RGkRTTaCB=Pihw2w@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/util/clauses.c | modified | +34 −0 |
| src/test/regress/expected/join.out | modified | +28 −0 |
| src/test/regress/sql/join.sql | modified | +13 −0 |
Discussion
- Check SubPlan clause for nonnullable rels/Vars 5 messages · 2022-09-11 → 2022-11-07