Re: possible memory leak with SRFs

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: possible memory leak with SRFs
Дата
Msg-id [email protected]
обсуждение исходный текст
Ответ на Re: possible memory leak with SRFs  (Nikhil Sontakke <[email protected]>)
Ответы Re: possible memory leak with SRFs
Список pgsql-hackers
Nikhil Sontakke <[email protected]> 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 по дате отправления: