Re: Seq scan

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: <stas-pgsql(at)xstas(dot)net>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Seq scan
Date: 2002-08-16 16:21:09
Message-ID: 20020816091857.W98786-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Fri, 16 Aug 2002 stas-pgsql(at)xstas(dot)net wrote:

>
> I am having a similar problem except that the solution below did not
> help. I have a table with about 15 million records.
>
> "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?

Can we see the table's structure and the explain output and number of
row in the table? Specifically, it's interesting to see what the row
estimate isrelative to the number of rows really returned and the number
of rows in the table.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message omid omoomi 2002-08-16 16:43:15 Re: last entry
Previous Message stas-pgsql 2002-08-16 15:54:48 Re: Seq scan