Re: BUG #5769: Problem with SPI_getvalue

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Helmar Spangenberg" <hspangenberg(at)frey(dot)de>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5769: Problem with SPI_getvalue
Date: 2010-11-25 16:20:38
Message-ID: 13535.1290702038@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Helmar Spangenberg" <hspangenberg(at)frey(dot)de> writes:
> Referring to the manual, I can pfree the result returned by SPI_getvalue.

Well, the result is the output of a datatype output function. I think
that's palloc'd by all standard datatypes, but maybe you're working with
a custom datatype that tries to return a constant string?

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2010-11-25 16:52:49 Re: BUG #5770: Foreign key violation after insert
Previous Message Helmar Spangenberg 2010-11-25 15:38:02 Re: BUG #5769: Problem with SPI_getvalue