Seq Scan - Mailing list pgsql-performance

From Tyler Durden
Subject Seq Scan
Date
Msg-id ab07320e0706010948m7c4eb1b8s9cdaf79b1c400125@mail.gmail.com
Whole thread Raw
Responses Re: Seq Scan
Re: Seq Scan
List pgsql-performance
Hi,
I'm having some problems in performance in a simple select count(id)
from.... I have 700 000 records in one table, and when I do:

# explain select (id) from table_name;
-[ RECORD 1 ]----------------------------------------------------------------
QUERY PLAN | Seq Scan on table_name  (cost=0.00..8601.30 rows=266730 width=4)

I had created an index for id(btree), but still shows "Seq Scan".
What I'm doing wrong?

Thanks,
Tyler

pgsql-performance by date:

Previous
From: Sander Steffann
Date:
Subject: Re: setting up raid10 with more than 4 drives
Next
From: Dan Harris
Date:
Subject: Re: Seq Scan