From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Handle SubPlan cases in find_nonnullable_rels/vars. |
Date: | 2022-11-05 19:24:47 |
Message-ID: | [email protected] |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/ff8fa0bf7eb9001f321c2af4bbe9c0f2bd5c1bf8
Modified Files
--------------
src/backend/optimizer/util/clauses.c | 34 ++++++++++++++++++++++++++++++++++
src/test/regress/expected/join.out | 28 ++++++++++++++++++++++++++++
src/test/regress/sql/join.sql | 13 +++++++++++++
3 files changed, 75 insertions(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2022-11-05 19:58:59 | pgsql: Don't pass down nonnullable_vars while reducing outer joins. |
Previous Message | Andres Freund | 2022-11-05 08:35:41 | pgsql: Remove redundant breaks in HeapTupleSatisfiesVisibility |