Re: possible memory leak with SRFs

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: possible memory leak with SRFs
Дата
Msg-id 13112.1273244944@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: possible memory leak with SRFs  (Nikhil Sontakke <nikhil.sontakke@enterprisedb.com>)
Ответы Re: possible memory leak with SRFs
Список pgsql-hackers
Nikhil Sontakke <nikhil.sontakke@enterprisedb.com> writes:
>> Consider
>> � � � �srf(foo(col))
>> where foo returns a pass-by-reference datatype.

> 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()).
        regards, tom lane


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