Re: Performance weirdness with/without vacuum analyze - Mailing list pgsql-general

From Greg Stark
Subject Re: Performance weirdness with/without vacuum analyze
Date
Msg-id 87fzhx2g04.fsf@stark.dyndns.tv
Whole thread Raw
In response to Re: Performance weirdness with/without vacuum analyze  (Harry Broomhall <harry.broomhall@uk.easynet.net>)
List pgsql-general
Harry Broomhall <harry.broomhall@uk.easynet.net> writes:

>    I'm not entirely sure how I would do this, as the 'lookup' is actualy
> a join.  I thought that the order of nameing the joined tables didn't
> matter (except for 'left' and 'right'), similar to the fact that 1 + 2 is
> the same as 2 + 1.

Outer joins are commutative (1+2 == 2+1) at least barring the left/right
issue. But they are not associative. (1+2)+3 != 1+(2+3).

There are cases where the optimizer could prove a particular set of joins
could be reordered this way, but it doesn't know how to do that currently.

--
greg

pgsql-general by date:

Previous
From: Gene Vital
Date:
Subject: Re: Pgsql on Windows
Next
From: Mike Mascari
Date:
Subject: Re: Pgsql on Windows