X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 0C2C3D1B554 for ; Tue, 11 Nov 2003 11:47:10 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 29632-04 for ; Tue, 11 Nov 2003 07:46:40 -0400 (AST) Received: from web21402.mail.yahoo.com (web21402.mail.yahoo.com [216.136.232.72]) by svr1.postgresql.org (Postfix) with SMTP id 8A6CAD1B558 for ; Tue, 11 Nov 2003 07:46:37 -0400 (AST) Message-ID: <20031111114639.15081.qmail@web21402.mail.yahoo.com> Received: from [64.81.205.234] by web21402.mail.yahoo.com via HTTP; Tue, 11 Nov 2003 03:46:39 PST Date: Tue, 11 Nov 2003 03:46:39 -0800 (PST) From: ow Subject: Re: pg 7.4.rc1, Range query performance To: Bruce Momjian , Tom Lane , Stephan Szabo Cc: pgsql-sql@postgresql.org In-Reply-To: <200311110513.hAB5D3325077@candle.pha.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/113 X-Sequence-Number: 15928 --- Bruce Momjian wrote: > Tom Lane wrote: > > Bruce Momjian writes: > > > Sorry there isn't a simple solution. > > > > But there is: make an index with the column order (b,c,a). > > Oh, yea, right. If he puts the columns he is doing a straight equals > comparison first, the 'a' comparison will work fine. Great. > Yes, I think Stephan Szabo was trying to convince me of something like that for quite sometime; it was not clear to me then. I'll give it a try. I still think "CREATE [CLUSTERED] INDEX" (or whatever) is an important feature and should be implemented in pgSql. Locking large (or huge) tables for prolonged periods of time may not be acceptable in many setups. Thanks __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree