Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 2FA3C475F32 for ; Wed, 22 May 2002 00:26:44 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 56C1D475F2C for ; Wed, 22 May 2002 00:26:43 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g4M4QaW21116; Wed, 22 May 2002 00:26:36 -0400 (EDT) To: "Thomas A. Lowery" Cc: pgsql-admin Subject: Re: Performance Problem Index Ignored, but why In-reply-to: <20020522000205.A17321@stllnx1.stlassoc.com> References: <20020522000205.A17321@stllnx1.stlassoc.com> Comments: In-reply-to "Thomas A. Lowery" message dated "Wed, 22 May 2002 00:02:05 -0400" Date: Wed, 22 May 2002 00:26:35 -0400 Message-ID: <21113.1022041595@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200205/175 X-Sequence-Number: 4350 "Thomas A. Lowery" writes: > Can I force the use of an index? Try "set enable_seqscan = off". But on the basis of what you've shown, it's not obvious that an indexscan will be faster. Is the planner's estimate that 139654 rows will match f_state = 'PA' in the right ballpark? regards, tom lane