X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 814AA53824 for ; Thu, 12 May 2005 19:38:37 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 05344-08 for ; Thu, 12 May 2005 22:38:27 +0000 (GMT) Received: from ns2.rox.net (ns2.rox.net [212.63.65.2]) by svr1.postgresql.org (Postfix) with ESMTP id 63FBF533A2 for ; Thu, 12 May 2005 19:38:25 -0300 (ADT) Received: from localhost ([127.0.0.1]) by emma.rox.net with esmtp (Exim 4.44) id 1DWMK5-0006CI-B1; Fri, 13 May 2005 00:38:29 +0200 Received: from d192101.adsl.hansenet.de ([80.171.192.101] helo=[10.0.1.6]) by emma.rox.net with esmtpa (Exim 4.44) id 1DWMK3-000684-Sx; Fri, 13 May 2005 00:38:27 +0200 In-Reply-To: <254.1115907326@sss.pgh.pa.us> References: <2aeb891e99fa6313e9e3a20d48c099aa@cluster9.com> <254.1115907326@sss.pgh.pa.us> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <5989cd23aa4942c871aba9cdcd7c4262@cluster9.com> Content-Transfer-Encoding: 7bit Cc: PgSQL Performance ML From: David Teran Subject: Re: AND OR combination: index not being used Date: Fri, 13 May 2005 00:38:22 +0200 To: Tom Lane X-Mailer: Apple Mail (2.622) X-Scanned-By: rockenstein AG X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200505/249 X-Sequence-Number: 12413 On 12.05.2005, at 16:15, Tom Lane wrote: > David Teran writes: >> Any hint how >> to force postgres to use the index even with more OR parts? > > More up-to-date statistics would evidently help; the thing is > estimating > hundreds of rows returned and actually finding none. > I always do a 'vacuum analyze' if something does not work as expected. But this did not help. Any other tip? regards, David