Seq Scan

From: "Tyler Durden" <tylersticky(at)gmail(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Seq Scan
Date: 2007-06-01 16:48:56
Message-ID: ab07320e0706010948m7c4eb1b8s9cdaf79b1c400125@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Dan Harris 2007-06-01 16:59:01 Re: Seq Scan
Previous Message Sander Steffann 2007-05-31 22:54:36 Re: setting up raid10 with more than 4 drives