pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org, yazan suleiman <yazan.suleiman@gmail.com>
Subject: Re: postgres 9 query performance
Date: Sun, 30 Jan 2011 23:35:03 +0100
Message-ID: <201101302335.03863.andres@anarazel.de> (raw)
In-Reply-To: <21572.1296425895@sss.pgh.pa.us>
References: <AANLkTi=2peg+cbGLb1Tn2Bf+-rnq3YfOO_8JaOrJCP0X@mail.gmail.com>
	<201101282219.29777.andres@anarazel.de>
	<21572.1296425895@sss.pgh.pa.us>

On Sunday 30 January 2011 23:18:15 Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > What happens if you change the
> > 
> >     left join event.origin on event.id = origin.eventid
> > 
> > into
> > 
> >     join event.origin on event.id = origin.eventid
> > 
> > ?
> > 
> > The EXISTS() requires that origin is not null anyway. (Not sure why the
> > planner doesn't recognize that though).
> 
> Sloppy thinking in reduce_outer_joins() is why. 
Wow. Nice one, thanks.

Andres



view thread (9+ messages)  latest in thread

Message-ID: <201101302335.03863.andres@anarazel.de>
Permalink:  ../201101302335.03863.andres@anarazel.de/
Also on:    postgresql.org/message-id/201101302335.03863.andres@anarazel.de

 · 

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: andres@anarazel.de, tgl@sss.pgh.pa.us, yazan.suleiman@gmail.com
  Subject: Re: postgres 9 query performance
  In-Reply-To: <201101302335.03863.andres@anarazel.de>

* 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