Re: Question about MemoryContexts and functions that returns

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Question about MemoryContexts and functions that returns
Дата
Msg-id 29467.1142975672@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Question about MemoryContexts and functions that returns  (Thomas Hallgren <thomas@tada.se>)
Ответы Re: Question about MemoryContexts and functions that returns  (Thomas Hallgren <thomas@tada.se>)
Список pgsql-hackers
Thomas Hallgren <thomas@tada.se> writes:
> As it turns out, I'm not supposed to allocate the returned tuple in the 
> caller context.

Where do you get that from?  plpgsql and plperl both do it that way AFAICS.

Are you testing in an --enable-cassert build?  The memory-clobber
behavior that that turns on is really essential for finding
dangling-pointer problems ...
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] A real currency type
Следующее
От: Greg Stark
Дата:
Сообщение: Re: qsort, once again