Re: Aggregate detoasted arguments lifetime

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Aggregate detoasted arguments lifetime
Дата
Msg-id 29243.1067267037@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Aggregate detoasted arguments lifetime  (strk <strk@keybit.net>)
Список pgsql-hackers
strk <strk@keybit.net> writes:
> My question is: if I write in the "state" array
> pointers to DETOASTED input args,
> will I find them intact at finalfunc time ?

No, not without pushups.  You are called in a short-lived memory
context.  You could allocate query-lifetime memory in fcinfo->fn_mcxt,
but it's then your responsibility to ensure there are no undesirable
memory leaks.
        regards, tom lane


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

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: Still a few flaws in configure's default CFLAGS selection
Следующее
От: Tom Lane
Дата:
Сообщение: Defaults for GUC variables (was Re: pg_ctl reports succes when start fails)