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  (Nikhil Sontakke <nikhil.sontakke@enterprisedb.com>)
Список 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 по дате отправления:

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: no universally correct setting for fsync
Следующее
От: Tom Lane
Дата:
Сообщение: Re: beta to release