Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group