Re: [PATCHES] Better default_statistics_target

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: [PATCHES] Better default_statistics_target
Дата
Msg-id 873asevrlu.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: [PATCHES] Better default_statistics_target  (Decibel! <decibel@decibel.org>)
Ответы Re: [PATCHES] Better default_statistics_target  ("Guillaume Smet" <guillaume.smet@gmail.com>)
Список pgsql-hackers
"Decibel!" <decibel@decibel.org> writes:

> I think that before doing any of that you'd be much better off
> investigating how much performance penalty there is for maxing out
> default_statistict_target. If, as I suspect, it's essentially 0 on
> modern hardware, then I don't think it's worth any more effort.

That's not my experience. Even just raising it to 100 multiplies the number of
rows ANALYZE has to read by 10. And the arrays for every column become ten
times larger. Eventually they start being toasted...

> BTW, that investigation wouldn't just be academic either; if we could
> convince ourselves that there normally wasn't any cost associated with a
> high default_statistics_target, we could increase the default, which
> would reduce the amount of traffic we'd see on -performance about bad
> query plans.

I suspect we could raise it, we just don't know by how much.

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com Ask me about EnterpriseDB's 24x7 Postgres support!


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

Предыдущее
От: Decibel!
Дата:
Сообщение: Re: [PATCHES] Better default_statistics_target
Следующее
От: "Guillaume Smet"
Дата:
Сообщение: Re: [PATCHES] Better default_statistics_target