pgsql: Add basic regression tests for semi/antijoin recognition. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Add basic regression tests for semi/antijoin recognition.
Date
Msg-id E1opeaw-001fTB-EQ@gemulon.postgresql.org
Whole thread Raw
List 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(+)


pgsql-committers by date:

Previous
From: Jeff Davis
Date:
Subject: pgsql: Fix ALTER COLLATION "default" REFRESH VERSION.
Next
From: Peter Eisentraut
Date:
Subject: pgsql: psql: Improve tab completion for ALTER TABLE on identity columns