X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 5054CD1B43E for ; Mon, 1 Dec 2003 14:04:53 +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 05586-03 for ; Mon, 1 Dec 2003 10:04:25 -0400 (AST) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by svr1.postgresql.org (Postfix) with ESMTP id 87932D1BC5C for ; Mon, 1 Dec 2003 10:04:20 -0400 (AST) Received: from [10.1.2.130] (helo=dba2) by mail.libertyrms.com with esmtp (Exim 3.22 #3 (Debian)) id 1AQoep-00061c-00 for ; Mon, 01 Dec 2003 09:04:11 -0500 Received: by dba2 (Postfix, from userid 1019) id EF081CC8A; Mon, 1 Dec 2003 09:04:10 -0500 (EST) Date: Mon, 1 Dec 2003 09:04:10 -0500 From: Andrew Sullivan To: pgsql-performance@postgresql.org Subject: Re: My indexes aren't being used (according to EXPLAIN) Message-ID: <20031201140410.GC4107@libertyrms.info> Mail-Followup-To: Andrew Sullivan , pgsql-performance@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/6 X-Sequence-Number: 4866 On Mon, Dec 01, 2003 at 02:40:30PM +0100, Erik Norvelle wrote: > > it=> explain select * from indethom where clavis < 25; What's the percentage of the table where clavis < 25? Have you ANALYSEd recently? What does the pg_stats view tell you about this table? > Feel free to point me to any FAQ or previous message that already > answers this question. Thanks in advance! This is a pretty common sort of problem. See the archives of this list for several fairly recent discussions of these sorts of problems. A -- ---- Andrew Sullivan 204-4141 Yonge Street Afilias Canada Toronto, Ontario Canada M2P 2A8 +1 416 646 3304 x110