pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Handle SubPlan cases in find_nonnullable_rels/vars.
Date: Sat, 05 Nov 2022 19:24:47 +0000
Message-ID: <E1orOmd-000aOL-Ps@gemulon.postgresql.org> (raw)

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

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(+)



Message-ID: <E1orOmd-000aOL-Ps@gemulon.postgresql.org>
Permalink:  ../E1orOmd-000aOL-Ps@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1orOmd-000aOL-Ps@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Handle SubPlan cases in find_nonnullable_rels/vars.
  In-Reply-To: <E1orOmd-000aOL-Ps@gemulon.postgresql.org>
  References: <E1orOmd-000aOL-Ps@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox