Re: Index of a table is not used (in any case)

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Index of a table is not used (in any case)
Дата
Msg-id Pine.BSF.4.21.0110222126040.49084-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Index of a table is not used (in any case)  (Reiner Dassing <dassing@wettzell.ifag.de>)
Список 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 по дате отправления:

Предыдущее
От: "Josh Berkus"
Дата:
Сообщение: Re: Index of a table is not used (in any case)
Следующее
От: Reiner Dassing
Дата:
Сообщение: Re: Index of a table is not used (in any case)