Re: [GENERAL] Plan for outer joins

2006-09-11 Thread Alban Hertroys
Martijn van Oosterhout wrote: On Mon, Sep 11, 2006 at 11:58:56AM +0200, Alban Hertroys wrote: Hi, I was tuning a join on a few tables for a SELECT COUNT(*) query, when I realized that the content of the second table didn't actually matter to the count. So, I figured a LEFT OUTER JOIN would be

Re: [GENERAL] Plan for outer joins

2006-09-11 Thread Martijn van Oosterhout
On Mon, Sep 11, 2006 at 11:58:56AM +0200, Alban Hertroys wrote: > Hi, > > I was tuning a join on a few tables for a SELECT COUNT(*) query, when I > realized that the content of the second table didn't actually matter to > the count. So, I figured a LEFT OUTER JOIN would be faster, but... > appa

[GENERAL] Plan for outer joins

2006-09-11 Thread Alban Hertroys
Hi, I was tuning a join on a few tables for a SELECT COUNT(*) query, when I realized that the content of the second table didn't actually matter to the count. So, I figured a LEFT OUTER JOIN would be faster, but... apparently it's not. Shouldn't the planner notice that the right part of SELE