Re: work_mem greater than 2GB issue

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: work_mem greater than 2GB issue
Дата
Msg-id 17304.1242326707@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: work_mem greater than 2GB issue  (wickro <robwickert@gmail.com>)
Список pgsql-general
wickro <robwickert@gmail.com> writes:
> So this is a planning mistake? Should a hash be allowed to grow larger
> than work_mem before it starts to use the disk?

HashAggregate doesn't have any ability to spill to disk.  The planner
will not select a HashAggregate if it thinks the required hash table
would be larger than work_mem.  What you've evidently got here is a
misestimate of the required hash table size, which most likely is
stemming from a bad estimate of the number of groups.  How does that
estimate (12617088 here) compare to reality?  Have you tried increasing
the statistics target for partner_id and keyword (or the whole table)?

            regards, tom lane

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

Предыдущее
От: Raymond O'Donnell
Дата:
Сообщение: Re: how to extract data from bytea so it is be used in blob for mysql database
Следующее
От: "George Kao"
Дата:
Сообщение: Re: how to extract data from bytea so it is be used in blob for mysql database