Re: [HACKERS] Problem returning strings with pgsql 8.3.x

2008-05-13 Thread Josh Tolley
On Tue, May 13, 2008 at 8:19 AM, Josh Tolley <[EMAIL PROTECTED]> wrote: > On Tue, May 13, 2008 at 8:01 AM, Tom Lane <[EMAIL PROTECTED]> wrote: > > Martijn van Oosterhout <[EMAIL PROTECTED]> writes: > > > On Mon, May 12, 2008 at 11:23:17PM -0600, Josh Tolley wrote: > > >> SPI_push(); > > >> r

Re: [HACKERS] Problem returning strings with pgsql 8.3.x

2008-05-13 Thread Josh Tolley
On Tue, May 13, 2008 at 8:01 AM, Tom Lane <[EMAIL PROTECTED]> wrote: > Martijn van Oosterhout <[EMAIL PROTECTED]> writes: > > On Mon, May 12, 2008 at 11:23:17PM -0600, Josh Tolley wrote: > >> SPI_push(); > >> retval = > >> InputFunctionCall(&flinfo, lolVarGetString(returnVal, true), > >> resul

Re: [HACKERS] Problem returning strings with pgsql 8.3.x

2008-05-13 Thread Tom Lane
Martijn van Oosterhout <[EMAIL PROTECTED]> writes: > 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

Re: [HACKERS] Problem returning strings with pgsql 8.3.x

2008-05-12 Thread Martijn van Oosterhout
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

[HACKERS] Problem returning strings with pgsql 8.3.x

2008-05-12 Thread Josh Tolley
Having posted this to -general [1] per -hackers list instructions [2] to try elsewhere first, and waited (not very long, I admit) in vain for a response, I'm posting this to -hackers now. My apologies if my impatience in that regard annoys. While developing PL/LOLCODE, I've found something wrong w