Re: queries stop using indexes

Поиск
Список
Период
Сортировка
От Ragnar
Тема Re: queries stop using indexes
Дата
Msg-id 1175514053.1153.97.camel@localhost.localdomain
обсуждение исходный текст
Ответ на queries stop using indexes  (Jonathan Vanasco <postgres@2xlp.com>)
Ответы Re: queries stop using indexes
Список pgsql-general
On lau, 2007-03-31 at 18:51 -0400, Jonathan Vanasco wrote:
> I have a table with 15 cols , there is an joint index on 5 of them
>
> there are ~15million records in the table, and it gets heavy  use via
> update & insert
>
> i recently noticed that after a day of use, the index is no longer
> being respected in some/all queries and a seq scan on the table is used
>
> i ran analyze, no change.
> i ran vacuum analyze, no change.
>
> i dropped the index, and recreated it -- its now used again.

if you analyze the table after recreating the index, does it then stop
using it?

possibly you need to increase statistic targets on some or all
of the index columns.

a EXPLAIN ANALYZE could help figuring this out.

gnari



В списке pgsql-general по дате отправления:

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: use superuser connection from php
Следующее
От: "Guillaume Bog"
Дата:
Сообщение: A little help for big forms