Re: Seq scan - Mailing list pgsql-general

From Tom Lane
Subject Re: Seq scan
Date
Msg-id 8931.1029517503@sss.pgh.pa.us
Whole thread Raw
In response to Re: Seq scan  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Responses Re: Seq scan  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List pgsql-general
Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:
> On Fri, 16 Aug 2002 stas-pgsql@xstas.net wrote:
>> "SELECT my_field FROM my_table WHERE id=12168996"      takes
>> about half a minute ( 'id' is an sequential indexed field in my_table )
>>
>> EXPLAIN says it is doing a Seq Scan

> Have you vacuum analyzed the table?

I'm betting it's ye olde wrong-datatype issue.  What's the data type of
id?  If it's not int4 then a cast is indicated ...

            regards, tom lane

pgsql-general by date:

Previous
From: "omid omoomi"
Date:
Subject: Re: last entry
Next
From: Stephan Szabo
Date:
Subject: Re: Seq scan