calling plpgsql from c

From: Max Jacob <Max(dot)Jacob(at)ircam(dot)fr>
To: pgsql-hackers(at)postgresql(dot)org
Subject: calling plpgsql from c
Date: 2003-11-15 23:06:56
Message-ID: 3FB6B190.8040409@ircam.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Neil Conway 2003-11-16 00:58:43 Re: bufmgr code question
Previous Message Derek Morr 2003-11-15 20:57:33 Re: [CORE] 7.4RC2 regression failur and not running