Re: Problem returning strings with pgsql 8.3.x - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: Problem returning strings with pgsql 8.3.x
Date
Msg-id 20080513063301.GA19436@svana.org
Whole thread Raw
In response to Problem returning strings with pgsql 8.3.x  ("Josh Tolley" <eggyknap@gmail.com>)
Responses Re: Problem returning strings with pgsql 8.3.x  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, May 12, 2008 at 11:23:17PM -0600, Josh Tolley wrote:
>                                 SPI_push();
>                                         retval =
> InputFunctionCall(&flinfo, lolVarGetString(returnVal, true),
>  resultTypeIOParam, -1);
>                                 SPI_pop();

Won't this cause the return value to be allocated inside a new memory
block which gets freeds at the SPI_pop?

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while
> boarding. Thank you for flying nlogn airlines.

pgsql-hackers by date:

Previous
From: Bryce Nesbitt
Date:
Subject: Re: psql wrapped format default for backslash-d commands
Next
From: "Brendan Jurd"
Date:
Subject: Re: psql wrapped format default for backslash-d commands