Handle SubPlan cases in find_nonnullable_rels/vars.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: ff8fa0bf7eb9001f321c2af4bbe9c0f2bd5c1bf8
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2022-11-05T19:24:36Z
Releases: 16.0
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

Discussion