Received: from candle.pha.pa.us (root@s5-03.ppp.op.net [209.152.195.67]) by hub.org (8.9.3/8.9.3) with ESMTP id MAA77119 for ; Thu, 8 Jul 1999 12:02:00 -0400 (EDT) (envelope-from maillist@candle.pha.pa.us) Received: (from maillist@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id LAA08894; Thu, 8 Jul 1999 11:40:18 -0400 (EDT) From: Bruce Momjian Message-Id: <199907081540.LAA08894@candle.pha.pa.us> Subject: Re: [SQL] Good Optimization In-Reply-To: <37845CC3.A2391717@partitur.se> from Patrik Kudo at "Jul 8, 1999 10:09:39 am" To: Patrik Kudo Date: Thu, 8 Jul 1999 11:40:18 -0400 (EDT) CC: pgsql-sql@postgreSQL.org X-Mailer: ELM [version 2.4ME+ PL56 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit [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, Pennsylvania 19026