X-Original-To: pgsql-admin@postgresql.org Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 3BC2347634E for ; Fri, 21 Mar 2003 11:02:29 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.8/8.12.8) with ESMTP id h2LG2Uub013301; Fri, 21 Mar 2003 11:02:31 -0500 (EST) To: Joe Conway Cc: Jodi Kanter , Postgres Admin List Subject: Re: indexes not being used! In-reply-to: <3E7B3365.5090603@joeconway.com> References: <004101c2efc0$65e6d0a0$de138f80@virginia.edu> <3E7B3365.5090603@joeconway.com> Comments: In-reply-to Joe Conway message dated "Fri, 21 Mar 2003 07:44:37 -0800" Date: Fri, 21 Mar 2003 11:02:30 -0500 Message-ID: <13300.1048262550@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200303/344 X-Sequence-Number: 7984 Joe Conway writes: > It's hard to tell from what you did post, but if the query returns a > significant portion of the table then a seq scan is faster, and is > properly picked by the optimizer. Please post EXPLAIN ANALYZE results. And do a VACUUM ANALYZE beforehand. The explain estimates look like the planner thinks all these tables are tiny. > (and actually, this thread probably should be on the SQL or the PERFORM > lists, not this one) Right. regards, tom lane