Re: Index usage

Поиск
Список
Период
Сортировка
От Dennis Björklund
Тема Re: Index usage
Дата
Msg-id Pine.LNX.4.44.0308260833530.31606-100000@zigo.dhs.org
обсуждение исходный текст
Ответ на Index usage  (Pedro Alves <pmalves@think.pt>)
Ответы Re: Index usage
Список pgsql-general
On Mon, 25 Aug 2003, Pedro Alves wrote:

>     The querys below are exactly the same but refer to different months.
> One case uses indexes, the other doesn't.
>
>     Is there anything I can do? Increasing index mem size?

Run "vacuum analyze". The planner seems to think that one of the queries
returns 313 rows while the other returns 2388 rows.

To me that looks like the statistics need to be updated using vacuum
analyze.

Also, explain analyze gives a little more information and is better to
run then just explain.

--
/Dennis


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

Предыдущее
От: David Lutz
Дата:
Сообщение: Re: convert database to unicode
Следующее
От: Ron Johnson
Дата:
Сообщение: Linux ready for high-volume databases?