Re: Why date index is not used

Поиск
Список
Период
Сортировка
От Andrus
Тема Re: Why date index is not used
Дата
Msg-id e6bgd3$1vgk$1@news.hub.org
обсуждение исходный текст
Ответ на Why date index is not used  ("Andrus" <eetasoft@online.ee>)
Список pgsql-performance
> Btw. have you run ANALYZE on the table recently?

I have autovacuum with default statitics settings running so I expect that
it is analyzed.

> What is the number
> of distinct values in the 'kuupaev' column?

select count(distinct kuupaev) from makse

returns 61

kuupaev is sales date.

So this can contain 365 distinct values per year and max 10 year database,
total can be  3650 distinct values after 10 years.

Andrus



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

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: Regarding pg_dump utility
Следующее
От: "Andrus"
Дата:
Сообщение: Re: Why date index is not used