pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Joseph Krogh <andreas@visena.com>
To: pgsql-general@lists.postgresql.org
Subject: Removing INNER JOINs
Date: Thu, 30 Nov 2017 14:52:44 +0100 (CET)
Message-ID: <VisenaEmail.2b.7dfa64bdab147c49.1600d1d9df0@tc7-visena> (raw)

Hi all.
 
I came across this from 
Oracle: https://oracle-base.com/articles/misc/join-elimination#basic-join-elimination
 
Needless to say, this would be very cool to have in PG:-)
 
It seems this has been discussed before [1], [2], [3], and the consesus at the 
time was that the proposted implementation introduced way too much 
planning-overhead to be worth it. Given that other RDBMS-vendors provides this, 
and it's on the "Cool feactures other have that we don't"-list [4], is anyone 
interessted in working on improving this?
 
 
1. Patch to support SEMI and ANTI join removal:

https://www.postgresql.org/message-id/flat/CAApHDvpCBEfuc5tD=vniepAv0pU5m=q=fOQZcOdMHeei7OQPgQ@mail....
2. Patch to Remove INNER JOINs:

https://www.postgresql.org/message-id/CAApHDvp4SsyQq5r%2Bj5iUA1rF1SuWGD5QrhoVLqOqOxVXe%3DNjxw%40mail...
3. Removing INNER JOINs
http://www.postgresql-archive.org/Removing-INNER-JOINs-td5828650i40.html

4. https://blog.jooq.org/2017/09/28/10-cool-sql-optimisations-that-do-not-depend-on-the-cost-model/#top...
 
-- Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
andreas@visena.com <mailto:andreas@visena.com>
www.visena.com <https://www.visena.com;
 <https://www.visena.com;

view thread (10+ messages)  latest in thread

Message-ID: <VisenaEmail.2b.7dfa64bdab147c49.1600d1d9df0@tc7-visena>
Permalink:  ../VisenaEmail.2b.7dfa64bdab147c49.1600d1d9df0@tc7-visena/
Also on:    postgresql.org/message-id/VisenaEmail.2b.7dfa64bdab147c49.1600d1d9df0@tc7-visena

 · 

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-general@postgresql.org
  Cc: andreas@visena.com
  Subject: Re: Removing INNER JOINs
  In-Reply-To: <VisenaEmail.2b.7dfa64bdab147c49.1600d1d9df0@tc7-visena>
  References: <VisenaEmail.2b.7dfa64bdab147c49.1600d1d9df0@tc7-visena>

* 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