Re: Embedded SQL in a function

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: Nikolay Hristov <charlie(at)mail(dot)vega(dot)bg>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Embedded SQL in a function
Date: 2002-07-16 08:52:31
Message-ID: 20020716085231.GA3352@feivel.credativ.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jul 15, 2002 at 07:28:19PM +0300, Nikolay Hristov wrote:
> Is it possible to use embedded SQL in C function.

You mean an internal function?

I'm sorry, that won't work as embedded SQl internally uses libpq to
talk to the backend. When you're inside the backend you would need to
use the SPI interface instead. I always wanted to add that to ecpg but
never found the time.

Michael
--
Michael Meskes
Michael(at)Fam-Meskes(dot)De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2002-07-16 08:59:10 Re: Question: merit / feasibility of compressing frontend
Previous Message jd 2002-07-16 08:50:27 Re: Question: merit / feasibility of compressing frontend