Must a C state transition function use palloc on the returned value?

From: Dirk Lutzebaeck <lutzeb(at)aeccom(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Must a C state transition function use palloc on the returned value?
Date: 2000-11-10 11:19:21
Message-ID: 14859.55737.695894.517231@ampato.core.aeccom.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Hi,

I'm defining a new aggregate using a C transition function. It is of
type TEXT, so the C function gets pointers (*text) to the internal-state1 and
next-data-item parameters.

Question is if the returning value of type *text must be palloc'ed or
can be just taken from the input parameters. In the latter case I get
error messages like

NOTICE: PortalHeapMemoryFree: 0x0x40b22ce8 not in alloc set!

Dirk

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas SB 2000-11-10 12:10:19 AW: Re: [INTERFACES] USE OF CURSORS IN ECPG
Previous Message Christof Petig 2000-11-10 10:52:48 Re: Re: [INTERFACES] USE OF CURSORS IN ECPG