Re: [BUGS] BUG #5769: Problem with SPI_getvalue

2010-11-25 Thread Tom Lane
"Helmar Spangenberg" 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 constan

Re: [BUGS] BUG #5769: Problem with SPI_getvalue

2010-11-25 Thread Helmar Spangenberg
You are right. In my case I obviously had corrupted the heap somewhere else - now it works as expected. Thanks for your quick answer, Helmar Am Donnerstag, 25. November 2010 16:11:03 schrieb Heikki Linnakangas: > On 25.11.2010 13:45, Helmar Spangenberg wrote: > > Bug reference: 5769 > > Log

Re: [BUGS] BUG #5769: Problem with SPI_getvalue

2010-11-25 Thread Heikki Linnakangas
On 25.11.2010 13:45, Helmar Spangenberg wrote: Bug reference: 5769 Logged by: Helmar Spangenberg Email address: hspangenb...@frey.de PostgreSQL version: 9.0.1 Operating system: Linux Description:Problem with SPI_getvalue Details: Referring to the manual, I can pfree

[BUGS] BUG #5769: Problem with SPI_getvalue

2010-11-25 Thread Helmar Spangenberg
The following bug has been logged online: Bug reference: 5769 Logged by: Helmar Spangenberg Email address: hspangenb...@frey.de PostgreSQL version: 9.0.1 Operating system: Linux Description:Problem with SPI_getvalue Details: Referring to the manual, I can pfree the