Re: Use my (date) index, darn it!

Поиск
Список
Период
Сортировка
От Christopher Browne
Тема Re: Use my (date) index, darn it!
Дата
Msg-id m3vfnqdtts.fsf@wolfe.cbbrowne.com
обсуждение исходный текст
Ответ на Re: Use my (date) index, darn it!  (Christopher Browne <cbbrowne@acm.org>)
Список pgsql-performance
In the last exciting episode, siracusa@mindspring.com (John Siracusa) wrote:
> What column(s) should I increase?  Do I have to do anything after increasing
> the statistics, or do I just wait for the stats collector to do its thing?

You have to ANALYZE the table again, to force in new statistics.

And if the index in question is on _just_ the date column, then it is
probably only that date column where the "SET STATISTICS" needs to be
increased.
--
let name="cbbrowne" and tld="cbbrowne.com" in name ^ "@" ^ tld;;
http://www.ntlug.org/~cbbrowne/sap.html
Faith  is the  quality that  enables you  to eat  blackberry jam  on a
picnic without looking to see whether the seeds move. -- DeMara Cabrera

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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: Select max(foo) and select count(*) optimization
Следующее
От: Christopher Browne
Дата:
Сообщение: Re: Select max(foo) and select count(*) optimization