Re: [SQL] Good Optimization - Mailing list pgsql-sql

From Bruce Momjian
Subject Re: [SQL] Good Optimization
Date
Msg-id 199907081540.LAA08894@candle.pha.pa.us
Whole thread Raw
In response to Re: [SQL] Good Optimization  (Patrik Kudo <kudo@partitur.se>)
List pgsql-sql
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Bruce Momjian wrote:
> > 
> > Added to TODO:
> > 
> >         * In WHERE x=3 AND x=y, add y=3
> 
> I don't know if I'm way off, but wouldn't removing "x=y" improve
> performance further?

Let me rewrite it.  TODO list updated:
* In WHERE tab1.x=3 AND tab1.x=tab2.y, add tab2.y=3

--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: [SQL] Good Optimization
Next
From: Bruce Momjian
Date:
Subject: Re: [SQL] Good Optimization