Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1juJAv-0007oK-T9 for pgsql-general@arkaria.postgresql.org; Sat, 11 Jul 2020 17:20:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1juJAu-0003Zb-R8 for pgsql-general@arkaria.postgresql.org; Sat, 11 Jul 2020 17:20:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1juJAu-0003ZU-Ec for pgsql-general@lists.postgresql.org; Sat, 11 Jul 2020 17:20:32 +0000 Received: from mxh01aws49.mxout.inova.com.br ([34.198.242.49] helo=mxhero01.a.inova.com.br) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1juJAp-0005qd-UO for pgsql-general@lists.postgresql.org; Sat, 11 Jul 2020 17:20:31 +0000 Received: from MXHERO01.A.INOVA.COM.BR (localhost [127.0.0.1]) by mxhero01.a.inova.com.br (Postfix) with ESMTP id BA5864C647 for ; Sat, 11 Jul 2020 17:20:25 +0000 (UTC) Received: from mxhero01.a.inova.com.br (localhost [127.0.0.1]) by mxhero01.a.inova.com.br (Postfix) with ESMTP for ; Sat, 11 Jul 2020 17:20:25 +0000 (UTC) Received: from mxhero02.a.inova.com.br (ip-10-0-4-48.ec2.internal [10.0.4.48]) by mxhero01.a.inova.com.br (Postfix) with ESMTPS id A21244C647 for ; Sat, 11 Jul 2020 17:20:25 +0000 (UTC) Received: from corpmoutpolicyd01.a.inova.com.br (puppetmaster.a.inova.com.br [10.0.1.88]) by mxhero02.a.inova.com.br (Postfix) with ESMTP id 929DA185982 for ; Sat, 11 Jul 2020 17:20:25 +0000 (UTC) Received: from corpmoutpolicyd01.a.inova.com.br (localhost [127.0.0.1]) by corpmoutpolicyd01.a.inova.com.br (Postfix) with ESMTP id 8D4972205BD for ; Sat, 11 Jul 2020 14:20:24 -0300 (BRT) Received: from corpmout01.a.inova.com.br (ip-10-0-1-125.ec2.internal [10.0.1.125]) by corpmoutpolicyd01.a.inova.com.br (Postfix) with ESMTP id 87B4EAAF4F for ; Sat, 11 Jul 2020 14:20:24 -0300 (BRT) Received: from corpmbox02.a.inova.com.br (ip-10-0-4-158.ec2.internal [10.0.4.158]) by corpmout01.a.inova.com.br (Postfix) with ESMTP for ; Sat, 11 Jul 2020 14:20:24 -0300 (-03) Date: Sat, 11 Jul 2020 14:20:24 -0300 (BRT) From: luis.roberto@siscobra.com.br To: pgsql-general Message-ID: <2028783297.11609965.1594488024498.JavaMail.zimbra@siscobra.com.br> Subject: Join optimization MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_5ca2532a-77ba-42f1-8706-e2a2e6c06992" X-Originating-IP: [10.0.4.158] X-Mailer: Zimbra 8.8.15_GA_3918 (ZimbraWebClient - GC83 (Win)/8.8.15_GA_3895) Thread-Index: 2ib5IwsMOhMzVCgzgAqCXc6XUtURIQ== Thread-Topic: Join optimization X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=H8qr+6Qi c=1 sm=1 tr=0 cx=a_idp_d a=aVKa9x/uM93/m3V8yChZ6A==:117 a=FKkrIqjQGGEA:10 a=MI-23WYqn6sA:10 a=_RQrkK6FrEwA:10 a=Qqgt34McTdMA:10 a=EtIKE8eWAAAA:8 a=W2qJBIc1AAAA:8 a=rYzcNtO1Uj3vCXb7tMYA:9 a=K4sdNUJX5E6mGYHq:21 a=DF3tXfiqs3nFS0B-:21 a=QEXdDO2ut3YA:10 a=8ASByO5ohDYikz6YRloA:9 a=uPlHASFHiwrxpVEM:21 a=_W_S_7VecoQA:10 a=n1QkC9O0VPLWf2ua9Wbz:22 a=f3LCGml2-gjdAfozEohe:22 x-mxHero-Origin-Ip: /127.0.0.1:59710 X-mxHero-AttachmentBlock: rule=48;result=false List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --=_5ca2532a-77ba-42f1-8706-e2a2e6c06992 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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 ] --=_5ca2532a-77ba-42f1-8706-e2a2e6c06992 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi!

Recently on a blogpost [1] I saw that Oracle was able to "optimize" = a join strategy by completely
Heres the execution on Oracle 18c [2] and Post= greSQL 13 (beta) [3].

Is ther= e a fundamental reason why PG can't do the same? 

Thanks!
 
--=_5ca2532a-77ba-42f1-8706-e2a2e6c06992--