Re: Timestamp index not used

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: david(at)stanaway(dot)net
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Timestamp index not used
Date: 2003-05-08 05:26:45
Message-ID: 17620.1052371605@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

<david(at)stanaway(dot)net> writes:
> radius=# EXPLAIN SELECT * from alldata where loggedat > '2003-05-07';
> NOTICE: QUERY PLAN:
> Seq Scan on alldata (cost=0.00..286136.26 rows=1428487 width=780)
^^^^^^^^^^^^

The planner seems to think that this query will return rather a lot of
rows ... which would imply that a seqscan isn't necessarily a bad idea.
Is that rows estimate accurate? (If not, have you ANALYZEd this table
lately?)

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Rajesh Kumar Mallah 2003-05-08 06:15:26 seeing type defination..
Previous Message Sean Chittenden 2003-05-08 04:57:49 Re: [PERFORM] [SQL] Unanswered Questions WAS: An unresolved performance problem.