Seq Scan

From: "Tyler Durden" <tylersticky(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Seq Scan
Date: 2007-06-01 16:49:34
Message-ID: ab07320e0706010949n1eafb8baq1525fb913b8b7074@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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-general by date

  From Date Subject
Next Message Simon Riggs 2007-06-01 16:49:35 Re: warm standby server stops doingcheckpointsafterawhile
Previous Message Teodor Sigaev 2007-06-01 16:49:10 Re: warm standby server stops doingcheckpointsafterawhile