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: Add basic regression tests for semi/antijoin recognition.
Date: Mon, 31 Oct 2022 23:53:30 +0000
Message-ID: <E1opeaw-001fTB-EQ@gemulon.postgresql.org> (raw)

Add basic regression tests for semi/antijoin recognition.

Add some simple tests that the planner recognizes all the
standard idioms for SEMI and ANTI joins.  Failure to optimize
in this way won't necessarily cause any visible change in
query results, so check the plans.  We had no similar coverage
before, at least for some variants of antijoin, as noted by
Richard Guo.

Discussion: https://postgr.es/m/CAMbWs4-mvPPCJ1W6iK6dD5HiNwoJdi6mZp=-7mE8N9Sh+cd0tQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0043aa6b8597809b19c420cb5e635b4d832adccc

Modified Files
--------------
src/test/regress/expected/join.out | 63 ++++++++++++++++++++++++++++++++++++++
src/test/regress/sql/join.sql      | 25 +++++++++++++++
2 files changed, 88 insertions(+)



Message-ID: <E1opeaw-001fTB-EQ@gemulon.postgresql.org>
Permalink:  ../E1opeaw-001fTB-EQ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1opeaw-001fTB-EQ@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: Add basic regression tests for semi/antijoin recognition.
  In-Reply-To: <E1opeaw-001fTB-EQ@gemulon.postgresql.org>
  References: <E1opeaw-001fTB-EQ@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