pgsql: Further tighten nullingrel marking rules in build_joinrel_tlist(

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Further tighten nullingrel marking rules in build_joinrel_tlist(
Date: 2023-02-08 19:45:48
Message-ID: E1pPqO3-0007o2-Rc@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Further tighten nullingrel marking rules in build_joinrel_tlist().

The code I added in fee7b77b9 could misbehave if commute_above_r
contains multiple relids. While adding too many relids here is
probably harmless (pre-fee7b77b9, we did it all the time), it's
not very expensive to be accurate: we just have to intersect
commute_above_r with the join's relids.

Discussion: https://postgr.es/m/17781-c0405c8b3cd5e072@postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d1c9c864fc042412e9b674d79a0e70972053ce15

Modified Files
--------------
src/backend/optimizer/util/relnode.c | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2023-02-08 21:57:55 pgsql: Backpatch OpenSSL 3.0.0 compatibility in tests
Previous Message Michael Paquier 2023-02-08 07:57:23 pgsql: Remove SQL regression tests for GUCs related to NO_SHOW_ALL