Re: BUG #5769: Problem with SPI_getvalue - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #5769: Problem with SPI_getvalue
Date
Msg-id 13535.1290702038@sss.pgh.pa.us
Whole thread Raw
In response to BUG #5769: Problem with SPI_getvalue  ("Helmar Spangenberg" <hspangenberg@frey.de>)
List pgsql-bugs
"Helmar Spangenberg" <hspangenberg@frey.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

pgsql-bugs by date:

Previous
From: Helmar Spangenberg
Date:
Subject: Re: BUG #5769: Problem with SPI_getvalue
Next
From: Tom Lane
Date:
Subject: Re: BUG #5770: Foreign key violation after insert