Re: [BUGS] json(b)_array_elements use causes very large memory usage when also referencing entire json document

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [BUGS] json(b)_array_elements use causes very large memory usage when also referencing entire json document
Дата
Msg-id 7739.1507343737@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [BUGS] json(b)_array_elements use causes very large memory usagewhen also referencing entire json document  (Andres Freund <andres@anarazel.de>)
Ответы Re: [BUGS] json(b)_array_elements use causes very large memory usagewhen also referencing entire json document
Список pgsql-bugs
Andres Freund <andres@anarazel.de> writes:
> I've just played around with this. ValuePerCall SRFs are fine with
> called in a short-lived context (they're required to be able to, as
> documented in xfunc.sgml), so is SFRM_Materialize. The only thing to be
> careful about is the *arguments* to the function, those need to live
> long enough in the ValuePerCall case.

Isn't there already code to deal with that?  See around line 175
in execSRF.c.
        regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: [BUGS] json(b)_array_elements use causes very large memory usagewhen also referencing entire json document
Следующее
От: Andres Freund
Дата:
Сообщение: Re: [BUGS] json(b)_array_elements use causes very large memory usagewhen also referencing entire json document