pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Pryzby <pryzby@telsasoft.com>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: suganthi Sekar <suganthi@uniphore.com>
Cc: pgsql-performance@lists.postgresql.org <pgsql-performance@lists.postgresql.org>
Subject: Re: partition pruning
Date: Thu, 14 Feb 2019 08:36:11 -0600
Message-ID: <20190214143611.GG30291@telsasoft.com> (raw)
In-Reply-To: <0c1f84989f9a2416d95a46d475e0e79567ade38a.camel@cybertec.at>
References: <SG2PR01MB29677D58E039944E76EAF4F7BC6D0@SG2PR01MB2967.apcprd01.prod.exchangelabs.com>
	<SG2PR01MB296735C008A080E986417E4EBC6D0@SG2PR01MB2967.apcprd01.prod.exchangelabs.com>
	<SG2PR01MB296746ADBB8257150C29EA7FBC6D0@SG2PR01MB2967.apcprd01.prod.exchangelabs.com>
	<SG2PR01MB29673BE6F7AA24424FDBFF60BC670@SG2PR01MB2967.apcprd01.prod.exchangelabs.com>
	<0c1f84989f9a2416d95a46d475e0e79567ade38a.camel@cybertec.at>

On Thu, Feb 14, 2019 at 01:37:49PM +0100, Laurenz Albe wrote:
> There is no condition on the table "call_report2" in your query,
> so it is not surprising that all partitions are scanned, right?

Some people find it surprising, since: a.call_id=b.call_id

suganthi Sekar wrote:
> > explain analyze
> > select * from call_report1 as a  inner join  call_report2 as b on a.call_id=b.call_id
> >  where a.call_created_date ='2017-11-01' and '2017-11-30'

Justin




view thread (6+ messages)

Message-ID: <20190214143611.GG30291@telsasoft.com>
Permalink:  ../20190214143611.GG30291@telsasoft.com/
Also on:    postgresql.org/message-id/20190214143611.GG30291@telsasoft.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: pryzby@telsasoft.com, laurenz.albe@cybertec.at, suganthi@uniphore.com, pgsql-performance@lists.postgresql.org
  Subject: Re: partition pruning
  In-Reply-To: <20190214143611.GG30291@telsasoft.com>

* 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