Re: SRF memory leaks

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: SRF memory leaks
Дата
Msg-id 1204013869.12305.18.camel@goldbach
обсуждение исходный текст
Ответ на Re: SRF memory leaks  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: SRF memory leaks  (Neil Conway <neilc@samurai.com>)
Список pgsql-patches
On Tue, 2008-02-26 at 03:13 -0500, Tom Lane wrote:
> "It's OK in the built-in SRFs" is disastrously different from "It's OK".

Right, I never said that, I was just commenting on your view that the
predominant use-case for SRFs is returning refcounted tupdescs.

You didn't comment on my proposed solution (FreeTupleDesc() iff refcount
== -1). ISTM that we *need* to free the TupleDesc in at least some
cases, in order to defend against the practice of explicitly allocating
the TupleDesc in the per-query context.

-Neil



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: SRF memory leaks
Следующее
От: Zdenek Kotala
Дата:
Сообщение: Re: lc_time and localized dates