Re: wip: functions median and percentile

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: wip: functions median and percentile
Дата
Msg-id 27242.1286820311@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: wip: functions median and percentile  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Ответы Re: wip: functions median and percentile  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Список pgsql-hackers
Dean Rasheed <dean.a.rasheed@gmail.com> writes:
> On 11 October 2010 18:48, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> 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.

In that case the estimate of 30K per instance was wrong.
You still haven't explained why this is impossible to estimate,
or even particularly hard, as long as we can provide some code that
knows specifically about the behavior of this aggregate.  The amount
of space needed to sort X amount of data is not unpredictable.
        regards, tom lane


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

Предыдущее
От: Dean Rasheed
Дата:
Сообщение: Re: wip: functions median and percentile
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Issues with two-server Synch Rep