| От | Tom Lane |
|---|---|
| Тема | Re: Hash aggregates blowing out memory |
| Дата | |
| Msg-id | 9266.1109368542@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Hash aggregates blowing out memory (Mike Harding <mvh@ix.netcom.com>) |
| Ответы |
Re: Hash aggregates blowing out memory
|
| Список | pgsql-general |
Mike Harding <mvh@ix.netcom.com> writes:
> I've been having problems where a HashAggregate is used because of a bad
> estimate of the distinct number of elements involved.
If you're desperate, there's always enable_hashagg. Or reduce sort_mem
enough so that even the misestimate looks like it will exceed sort_mem.
In the long run it would be nice if HashAgg could spill to disk. We
were expecting to see a contribution of code along that line last year
(from the CMU/Berkeley database class) but it never showed up. The
performance implications might be a bit grim anyway :-(
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера