Re: array_agg() on a set larger than some arbitrary(?) limit causes runaway memory usage and eventually memory exhaustion

Поиск
Список
Период
Сортировка
От Frank van Vugt
Тема Re: array_agg() on a set larger than some arbitrary(?) limit causes runaway memory usage and eventually memory exhaustion
Дата
Msg-id 7389794.JZAAPvMp9o@techfox.foxi
обсуждение исходный текст
Ответ на Re: array_agg() on a set larger than some arbitrary(?) limit causes runaway memory usage and eventually memory exhaustion  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Op donderdag 31 oktober 2013 10:05:16 schreef Tom Lane:
> > It looks like this didn't go into git yet. Will it be in v9.2.6/v9.3.1?
>
> Certainly not.  We can consider it for 9.4, if Tomas submits it to the
> commitfest process, but it needs review and testing.  In particular
> I'm skeptical that it probably outright breaks some cases (look at
> makeMdArrayResult) and results in substantial added bloat, not savings,

Clear, please mind the fact that Tomas did point out to me that it was an
untested patch ;)

However, although the example with which I ran into this issue was a bit
contrived, the current behaviour of the array functions in terms of memory
usage does seem to be a bit greedy. So at least it _looks_ like a good idea to
want to do something about it, since triggering this issue in the real world
doesn't seem that far-fetched...

Tomas...., are you planning to (submit a patch)?



--

Best,




Frank.

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

Предыдущее
От: Sergey Konoplev
Дата:
Сообщение: Re: Completely broken replica after PANIC: WAL contains references to invalid pages
Следующее
От: Patrick Lademan
Дата:
Сообщение: Re: BUG #8343: plperl/plperlu Install Fails