calling plpgsql from c - Mailing list pgsql-hackers

From Max Jacob
Subject calling plpgsql from c
Date
Msg-id 3FB6B190.8040409@ircam.fr
Whole thread Raw
Responses Re: calling plpgsql from c  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
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 by myself before calling the plpgsql function since i 
would loose tons of stuff (or am i missing something?). Now, is there a 
way to work around this? If not: wouldn't it be meaningful to change 
this behavior?

thank you

max.




pgsql-hackers by date:

Previous
From: Rod Taylor
Date:
Subject: Re: Sponsoring enterprise features
Next
From: Robert Treat
Date:
Subject: Re: Is there going to be a port to Solaris 9 x86 in the