pgsql: Add basic regression tests for semi/antijoin recognition.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add basic regression tests for semi/antijoin recognition.
Date: 2022-10-31 23:53:30
Message-ID: E1opeaw-001fTB-EQ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2022-11-01 11:19:06 pgsql: psql: Improve tab completion for ALTER TABLE on identity columns
Previous Message Jeff Davis 2022-10-31 23:01:40 pgsql: Fix ALTER COLLATION "default" REFRESH VERSION.