pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: luis.roberto@siscobra.com.br
To: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Join optimization
Date: Sat, 11 Jul 2020 14:20:24 -0300 (BRT)
Message-ID: <2028783297.11609965.1594488024498.JavaMail.zimbra@siscobra.com.br> (raw)

Hi! 

Recently on a blogpost [1] I saw that Oracle was able to "optimize" a join strategy by completely eliminating access to a table. 

Heres the execution on Oracle 18c [2] and PostgreSQL 13 (beta) [3]. 

Is there a fundamental reason why PG can't do the same? 

Thanks! 
[1] [ https://blog.dbi-services.com/the-myth-of-nosql-vs-rdbms-joins-dont-scale/ | https://blog.dbi-services.com/the-myth-of-nosql-vs-rdbms-joins-dont-scale/ ] 
[2] [ https://dbfiddle.uk/?rdbms=oracle_18&fiddle=a5afeba2fdb27dec7533545ab0a6eb0e | https://dbfiddle.uk/?rdbms=oracle_18&fiddle=a5afeba2fdb27dec7533545ab0a6eb0e ] 
[3] [ https://dbfiddle.uk/?rdbms=postgres_13&fiddle=87c78b4e97fdbd87255efc2fc909ee62 | https://dbfiddle.uk/?rdbms=postgres_13&fiddle=87c78b4e97fdbd87255efc2fc909ee62 ] 

view thread (5+ messages)  latest in thread

Message-ID: <2028783297.11609965.1594488024498.JavaMail.zimbra@siscobra.com.br>
Permalink:  ../2028783297.11609965.1594488024498.JavaMail.zimbra@siscobra.com.br/
Also on:    postgresql.org/message-id/2028783297.11609965.1594488024498.JavaMail.zimbra@siscobra.com.br

 · 

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: luis.roberto@siscobra.com.br
  Subject: Re: Join optimization
  In-Reply-To: <2028783297.11609965.1594488024498.JavaMail.zimbra@siscobra.com.br>
  References: <2028783297.11609965.1594488024498.JavaMail.zimbra@siscobra.com.br>

* 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