Re: wip: functions median and percentile

Поиск
Список
Период
Сортировка
От Dean Rasheed
Тема Re: wip: functions median and percentile
Дата
Msg-id AANLkTimTv7UNeVLS_B9SfqJ0xmmNMtUW4Wn3X-C8L0yK@mail.gmail.com
обсуждение исходный текст
Ответ на Re: wip: functions median and percentile  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: wip: functions median and percentile  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 11 October 2010 18:48, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Dean Rasheed <dean.a.rasheed@gmail.com> writes:
>> On 11 October 2010 18:37, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>> Sure it would: an estimate of 30K would keep the planner from using
>>> hash aggregation.
>
>> Not if work_mem was 10MB.
>
> And?  If the memory requirement actually fits, you're in good shape.
>

Yeah but the actual memory requirement, if it uses a hash aggregate,
is over 1GB, and could easily be much higher. It's also hard to kill,
because it eats up that memory so quickly.

Regards,
Dean


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: wip: functions median and percentile
Следующее
От: Tom Lane
Дата:
Сообщение: Re: wip: functions median and percentile