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 13DFE5366F for ; Thu, 12 May 2005 11:15:36 -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 46848-06 for ; Thu, 12 May 2005 14:15:26 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id F2BFB5362D for ; Thu, 12 May 2005 11:15:25 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j4CEFQdX000255; Thu, 12 May 2005 10:15:26 -0400 (EDT) To: David Teran Cc: PgSQL Performance ML Subject: Re: AND OR combination: index not being used In-reply-to: <2aeb891e99fa6313e9e3a20d48c099aa@cluster9.com> References: <2aeb891e99fa6313e9e3a20d48c099aa@cluster9.com> Comments: In-reply-to David Teran message dated "Thu, 12 May 2005 11:07:41 +0200" Date: Thu, 12 May 2005 10:15:26 -0400 Message-ID: <254.1115907326@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/236 X-Sequence-Number: 12400 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. regards, tom lane