Re: [SQL] Good Optimization

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Patrik Kudo <kudo(at)partitur(dot)se>
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] Good Optimization
Date: 1999-07-08 15:40:18
Message-ID: 199907081540.LAA08894@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 1999-07-08 15:48:04 Re: [SQL] Good Optimization
Previous Message Tom Lane 1999-07-08 15:01:17 Re: [SQL] Good Optimization