| От | Tom Lane |
|---|---|
| Тема | Re: wip: functions median and percentile |
| Дата | |
| Msg-id | 13146.1285944227@sss.pgh.pa.us обсуждение |
| Ответ на | Re: wip: functions median and percentile (Hitoshi Harada <umi.tanuki@gmail.com>) |
| Ответы |
Re: wip: functions median and percentile
|
| Список | pgsql-hackers |
Hitoshi Harada <umi.tanuki@gmail.com> writes:
> 2010/10/1 Tom Lane <tgl@sss.pgh.pa.us>:
>> If this patch tries to force the entire sort to happen in memory,
>> it is not committable.
> What about array_agg()? Doesn't it exceed memory even if the huge data come in?
Yeah, but for array_agg the user should be expecting a result of
approximately the size of the whole input, so if he overruns memory he
hasn't got a lot of room to complain. There is no reason for a user to
expect that median or percentile will fall over on large input, and
every reason to expect them to be more robust than that.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера