Re: possible memory leak with SRFs

Поиск
Список
Период
Сортировка
От Nikhil Sontakke
Тема Re: possible memory leak with SRFs
Дата
Msg-id i2wa301bfd91005072106w7ae06eb8s51c4a54fd8a693a9@mail.gmail.com
обсуждение исходный текст
Ответ на Re: possible memory leak with SRFs  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: possible memory leak with SRFs  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: possible memory leak with SRFs  (Joe Conway <mail@joeconway.com>)
Список pgsql-hackers
>> Yeah this is my basic confusion. But wouldn't the arguments be
>> evaluated afresh on the subsequent call for this SRF?
>
> No, see ExecMakeFunctionResult().  If we did that we'd have serious
> problems with volatile functions, ie srf(random()).
>

Ok thanks. So if someone uses a really long-running srf with argument
expression evaluations thrown in, then running into "out of memory"
issues should be expected and then in those cases they are better off
using multiple srf calls to get the same effect if they can..

Regards,
Nikhils
--
http://www.enterprisedb.com


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

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: beta to release
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: no universally correct setting for fsync