Skip site navigation (1) Skip section navigation (2)

Re: postgres 9 query performance

From: "Ross J(dot) Reedstrom" <reedstrm(at)rice(dot)edu>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: postgres 9 query performance
Date: 2011-02-01 16:42:53
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
On Sun, Jan 30, 2011 at 05:18:15PM -0500, Tom Lane wrote:
> Andres Freund <andres(at)anarazel(dot)de> writes:
> > What happens if you change the
> >     left join event.origin on = origin.eventid
> > into
> >     join event.origin on = 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.  Fixed now:
> 			regards, tom lane

This is one of the reasons I love open source in general, and PostgreSQL
in particular: Tom has the bandwidth to notice these kinds of
workarounds being discussed on support lists, and turn them immediately
into improvements in the planner. Partly because (I assume, based on
the commit message) Andres's parenthetical comment red-flagged it for
him, since he knew he could trust Andres's opinion that there was
probably a planner improvement hiding here. Amazing!

Ross Reedstrom, Ph.D.                                 reedstrm(at)rice(dot)edu
Systems Engineer & Admin, Research Scientist        phone: 713-348-6166
Connexions                    fax: 713-348-3665
Rice University MS-375, Houston, TX 77005
GPG Key fingerprint = F023 82C8 9B0E 2CC6 0D8E  F888 D3AE 810E 88F0 BEDE

In response to

pgsql-performance by date

Next:From: Benjamin KrajmalnikDate: 2011-02-01 16:46:59
Subject: Re: Configuration for a new server.
Previous:From: Greg SmithDate: 2011-02-01 11:53:49
Subject: Re: Configuration for a new server.

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group