X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id D9FAF9DC883 for ; Wed, 15 Mar 2006 16:45:45 -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 33093-01 for ; Wed, 15 Mar 2006 16:45:46 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from 137086.vserver.de (vs137086.vserver.de [62.75.137.86]) by postgresql.org (Postfix) with ESMTP id 1CD8D9DC816 for ; Wed, 15 Mar 2006 16:45:42 -0400 (AST) Received: from a-kretschmer.de (p54B3CFDE.dip0.t-ipconnect.de [84.179.207.222]) (authenticated bits=0) by 137086.vserver.de (8.12.8/8.12.8) with ESMTP id k2FKjfgb001825 for ; Wed, 15 Mar 2006 21:45:42 +0100 Received: from kretschmer by a-kretschmer.de with local (Exim 4.60) (envelope-from ) id 1FJctY-0004tk-R5 for pgsql-performance@postgresql.org; Wed, 15 Mar 2006 21:47:00 +0100 Date: Wed, 15 Mar 2006 21:47:00 +0100 From: Andreas Kretschmer To: pgsql-performance@postgresql.org Subject: Re: BETWEEN optimizer problems with single-value range Message-ID: <20060315204700.GA17623@KanotixBox> References: <44180105.EE98.0025.0@wicourts.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-OS: Debian/GNU Linux - weil ich es mir Wert bin! X-GPG-Fingerprint: EE16 3C01 7B9C 10F7 2C8B 3B86 4DB3 D9EE 7F45 84DA X-Message-Flag: "Windows" is not the answer. "Windows" is the question and the answer is "no"! X-Lugdd: Gerd Kube X-Info: My name is root. Just root. And I am licensed to kill -9 User-Agent: mutt-ng 1.5.9i (Linux) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.123 required=5 tests=[AWL=0.123] X-Spam-Score: 0.123 X-Spam-Level: X-Archive-Number: 200603/220 X-Sequence-Number: 17657 Merlin Moncure schrieb: > On 3/15/06, Kevin Grittner wrote: > > Attached is a simplified example of a performance problem we have seen, > > 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. > 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. Andreas -- Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect. (Linus Torvalds) "If I was god, I would recompile penguin with --enable-fly." (unknow) Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°