Re: bad estimates

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: bad estimates
Дата
Msg-id 22271.1062254152@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: bad estimates  (Ken Geis <kgeis@speakeasy.org>)
Список pgsql-performance
Ken Geis <kgeis@speakeasy.org> writes:
>  From what I've learned, we want to convince the optimizer to use a
> table scan; that's a good thing.  I want it to use hashed aggregates,
> but I can't convince it to (unless maybe I removed all of the
> statistics.)

You probably just need to increase sort_mem.  Multiple aggregates take
more RAM to process in a hashtable style ...

            regards, tom lane

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

Предыдущее
От: Ron Johnson
Дата:
Сообщение: Re: Selecting random rows efficiently
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Selecting random rows efficiently