Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> writes:
> On Fri, 16 Aug 2002 stas-pgsql(at)xstas(dot)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