Re: improper call to spi_printtup ??? - Mailing list pgsql-hackers

From Darko Prenosil
Subject Re: improper call to spi_printtup ???
Date
Msg-id 200406290911.45810.darko.prenosil@finteh.hr
Whole thread Raw
In response to Re: improper call to spi_printtup ???  ("Darko Prenosil" <Darko.Prenosil@finteh.hr>)
List pgsql-hackers
> ----- Original Message -----
> From: "Tom Lane" <tgl@sss.pgh.pa.us>
> To: "Darko Prenosil" <darko.prenosil@finteh.hr>
> Cc: <pgsql-hackers@postgresql.org>
> Sent: Monday, June 28, 2004 9:39 PM
> Subject: Re: [HACKERS] improper call to spi_printtup ???
>
> > Darko Prenosil <darko.prenosil@finteh.hr> writes:
> > > Anyone knows what I'm doing wrong ?
> >
> > Well, when you didn't show us the text of the function, no.
> >
> > However, a reasonable bet would be that you used SPI inside the function
> > and did not use it correctly, leaving the SPI state corrupted when
> > control got back to plpgsql.
> >

You figure it out right, SPI_finish was in the wrong place. 
Thanks again.

Regards !


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: client_min_messages in dumps?
Next
From: Dennis Bjorklund
Date:
Subject: Re: client_min_messages in dumps?