X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 16B019DC999 for ; Wed, 15 Mar 2006 18:11:17 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 53732-05 for ; Wed, 15 Mar 2006 18:11:18 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by postgresql.org (Postfix) with ESMTP id F0AC09DC80D for ; Wed, 15 Mar 2006 18:11:14 -0400 (AST) Received: by zproxy.gmail.com with SMTP id 4so288440nzn for ; Wed, 15 Mar 2006 14:11:17 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Qv+g6085KS4pmdwNC9HpR4Z4YvxNsLgYuvzsj5JTHbFM5J9tpXcSM0U2k9ouX6fkRdaP5k9NMJo6zY/4Txjuvyo0czqTISbF6BOjQfqfZ82aSiVb37Ca2fHlJr1NL6X8Mihor/w0S8Z0AyTHqkU7GEEYrCIF714OAA0EH35Gvtg= Received: by 10.65.133.19 with SMTP id k19mr554537qbn; Wed, 15 Mar 2006 14:11:16 -0800 (PST) Received: by 10.65.137.20 with HTTP; Wed, 15 Mar 2006 14:11:16 -0800 (PST) Message-ID: Date: Wed, 15 Mar 2006 17:11:16 -0500 From: "Merlin Moncure" To: "Andreas Kretschmer" Subject: Re: [PERFORM] BETWEEN optimizer problems with single-value range Cc: pgsql-performance@postgresql.org, "Kevin Grittner" , "postgres hackers" In-Reply-To: <20060315204700.GA17623@KanotixBox> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <44180105.EE98.0025.0@wicourts.gov> <20060315204700.GA17623@KanotixBox> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.139 required=5 tests=[AWL=0.139] X-Spam-Score: 0.139 X-Spam-Level: X-Archive-Number: 200603/723 X-Sequence-Number: 81121 On 3/15/06, Andreas Kretschmer wrote: > Merlin Moncure schrieb: > > > On 3/15/06, Kevin Grittner wrote: > > > Attached is a simplified example of a performance problem we have see= n, > > > with a workaround and a suggestion for enhancement (hence both the > > > performance and hackers lists). > > > > > > Hi Kevin. In postgres 8.2 you will be able to use the row-wise > > 8.2? AFAIK, Feature freeze in juni/juli this year... > Release august/september. yes, but I was addressing kevin's point about enhancing the server... > > comparison for your query which should guarantee good worst case > > performance without having to maintain two separate query forms. it > > Perhaps, a bitmap index scan (since 8.1) are useful for such querys. > Thats why i asked which version. I think you will find that reading a range of records from a table ordered by an index utilizing the 8.2 comparison feature is much faster than a bitmap index scan. Merlin