Re: [HACKERS] calling plpgsql from c

2004-03-16 Thread Bruce Momjian
Tom Lane wrote: > Max Jacob <[EMAIL PROTECTED]> writes: > > I'm trying to call plpgsql functions from c functions directly through > > the Oid, but i have a problem: it seems that the plpgsql interpreter > > calls SPI_connect and fails even if the caller has already > > spi-connected. > > This

Re: [HACKERS] calling plpgsql from c

2003-11-21 Thread Tom Lane
Max Jacob <[EMAIL PROTECTED]> writes: > I'm trying to call plpgsql functions from c functions directly through > the Oid, but i have a problem: it seems that the plpgsql interpreter > calls SPI_connect and fails even if the caller has already > spi-connected. This is a safety check. If you are

[HACKERS] calling plpgsql from c

2003-11-18 Thread Max Jacob
Hallo, I'm trying to call plpgsql functions from c functions directly through the Oid, but i have a problem: it seems that the plpgsql interpreter calls SPI_connect and fails even if the caller has already spi-connected. I am working on recursive functions in c and so i can not call SPI_finish