Re: SRF memory mgmt patch (was [HACKERS] Concern about memory management with SRFs)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: SRF memory mgmt patch (was [HACKERS] Concern about memory management with SRFs)
Дата
Msg-id 14329.1030665692@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: SRF memory mgmt patch (was [HACKERS] Concern about memory management  (Joe Conway <mail@joeconway.com>)
Список pgsql-patches
Joe Conway <mail@joeconway.com> writes:
> As you said, if the next ExecStoreTuple will try to do an
> ExecClearTuple(), ISTM that it should be removed from
> per_MultiFuncCall()/SRF_PERCALL_SETUP().

No, it's not necessary: ExecClearTuple knows the difference between a
full and an empty TupleSlot.

I'm not sure where the excess free is coming from, but it ain't
ExecClearTuple's fault.  You might try setting a breakpoint at
heap_freetuple to see if that helps.

            regards, tom lane

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

Предыдущее
От: Gavin Sherry
Дата:
Сообщение: Re: [HACKERS] Proposed GUC Variable
Следующее
От: Larry Rosenman
Дата:
Сообщение: Re: [HACKERS] Proposed GUC Variable