Re: Queries not using Index

From: "Gaetano Mendola" <mendola(at)bigfoot(dot)com>
To: "Daryl Herzmann" <akrherz(at)iastate(dot)edu>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Queries not using Index
Date: 2002-07-23 12:56:28
Message-ID: 000e01c23248$5c3bc410$d60ffea9@GMENDOLA2
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Daryl Herzmann" <akrherz(at)iastate(dot)edu> wrote:
> snet=# select count(valid) from t2002_06;
> count
> ---------
> 1513895

> 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)

Can you do the following query for better understand your situation ?

select count(*) from t2002_06 where station = 'SGLI4';

select count(*) from t2002_06;

Ciao
Gaetano.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Sandro Joel Eller 2002-07-23 13:11:18 Scan SQL
Previous Message Achilleus Mantzios 2002-07-23 08:33:25 Re: pg_dump and sequences