Received: from candle.pha.pa.us (maillist@s5-03.ppp.op.net [209.152.195.67]) by hub.org (8.9.3/8.9.3) with ESMTP id QAA02512 for ; Tue, 15 Jun 1999 16:09:57 -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 QAA02107; Tue, 15 Jun 1999 16:09:47 -0400 (EDT) From: Bruce Momjian Message-Id: <199906152009.QAA02107@candle.pha.pa.us> Subject: Re: [SQL] optimizer woes ? In-Reply-To: <23416.929476558@sss.pgh.pa.us> from Tom Lane at "Jun 15, 1999 03:55:58 pm" To: Tom Lane Date: Tue, 15 Jun 1999 16:09:46 -0400 (EDT) CC: Howie , 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 > The TODO entry is insufficiently ambitious: it should read "implement > a general-purpose constant-subexpression-reduction step". (Actually, Changed: * Convert function(constant) into a constant for index use > I think that TODO entry might refer to something completely different > ... wasn't the complaint that you couldn't make an index on > "date_part('date', field)"? ) This is a separate issue. -- 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