Re: Hash aggregates blowing out memory

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Hash aggregates blowing out memory
Дата
Msg-id 13801.1109369302@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Hash aggregates blowing out memory  (Mike Harding <mvh@ix.netcom.com>)
Список pgsql-general
Mike Harding <mvh@ix.netcom.com> writes:
> Any way to adjust n_distinct to be more accurate?

You could try increasing the statistics target for the relevant columns.
What does pg_stats show for the "numdistinct" estimates of the columns
you are grouping over, and does that have anything to do with reality?

            regards, tom lane

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

Предыдущее
От: Mike Harding
Дата:
Сообщение: Re: Hash aggregates blowing out memory
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Questions regarding notify processing.