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

Re: improper call to spi_printtup ???

From: Darko Prenosil <darko(dot)prenosil(at)finteh(dot)hr>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: improper call to spi_printtup ???
Date: 2004-06-29 07:11:45
Message-ID: 200406290911.45810.darko.prenosil@finteh.hr (view raw or flat)
Thread:
Lists: pgsql-hackers
> ----- Original Message -----
> From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
> To: "Darko Prenosil" <darko(dot)prenosil(at)finteh(dot)hr>
> Cc: <pgsql-hackers(at)postgresql(dot)org>
> Sent: Monday, June 28, 2004 9:39 PM
> Subject: Re: [HACKERS] improper call to spi_printtup ???
>
> > Darko Prenosil <darko(dot)prenosil(at)finteh(dot)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 !

In response to

pgsql-hackers by date

Next:From: Dennis BjorklundDate: 2004-06-29 08:10:16
Subject: Re: client_min_messages in dumps?
Previous:From: Tom LaneDate: 2004-06-29 06:27:24
Subject: Re: client_min_messages in dumps?

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