Re: Queries not using Index

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Daryl Herzmann <akrherz(at)iitap(dot)iastate(dot)edu>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Queries not using Index
Date: 2002-07-23 15:05:59
Message-ID: 20020723080457.V24800-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


On Mon, 22 Jul 2002, Daryl Herzmann wrote:

> snet=# explain SELECT * from t2002_06 WHERE station = 'SGLI4';
> NOTICE: QUERY PLAN:
>
> Seq Scan on t2002_06 (cost=0.00..35379.69 rows=35564 width=47)
>
> EXPLAIN

What does explain show if you do set enable_seqscan=off;
?
It's possible that it's estimating a greater cost for the index scan.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Andrew Sullivan 2002-07-23 15:18:01 Re: No command history in psql
Previous Message Carmen Wai 2002-07-23 14:53:10 No command history in psql