Re: Index of a table is not used (in any case) - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: Index of a table is not used (in any case)
Date
Msg-id Pine.BSF.4.21.0110222126040.49084-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Index of a table is not used (in any case)  (Reiner Dassing <dassing@wettzell.ifag.de>)
List pgsql-sql
On Mon, 22 Oct 2001, Reiner Dassing wrote:

> Hello PostgreSQl Users!
> 
> PostSQL V 7.1.1:
> 
> I have defined a table and the necessary indices.
> But the index is not used in every SELECT. (Therefore, the selects are
> *very* slow, due to seq scan on
> 20 million entries, which is a test setup up to now)
> 
> The definitions can be seen in the annex.
> 
> Does some body know the reason and how to circumvent the seq scan?
> 
> Is the order of index creation relevant? I.e., should I create the
> indices before inserting
> entries or the other way around?
> 

Have you run a vacuum analyze to update the statistics after the data was
loaded?



pgsql-sql by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: Index of a table is not used (in any case)
Next
From: Reiner Dassing
Date:
Subject: Re: Index of a table is not used (in any case)