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 5E0A1D1B522 for ; Tue, 11 Nov 2003 05:13:48 +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 69777-01 for ; Tue, 11 Nov 2003 01:13:17 -0400 (AST) Received: from candle.pha.pa.us (unknown [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 131F3D1B4E1 for ; Tue, 11 Nov 2003 01:13:15 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id hAB5D3325077; Tue, 11 Nov 2003 00:13:03 -0500 (EST) From: Bruce Momjian Message-Id: <200311110513.hAB5D3325077@candle.pha.pa.us> Subject: Re: pg 7.4.rc1, Range query performance In-Reply-To: <27118.1068524013@sss.pgh.pa.us> To: Tom Lane Date: Tue, 11 Nov 2003 00:13:03 -0500 (EST) Cc: ow , pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/110 X-Sequence-Number: 15925 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. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073