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

Re: C Stored Function with ECPG

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bob Henkel <bob(dot)henkel(at)gmail(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: C Stored Function with ECPG
Date: 2009-02-24 01:47:28
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
Bob Henkel <bob(dot)henkel(at)gmail(dot)com> writes:
> I assume it's feasible to embedd ECPG in a Postgres Stored function
> written in C?

No, I don't think so; or at least that's not the expected usage.  ECPG
expects to connect to an external server.  The normal way to issue
SQL from C-level backend code is to use the SPI interface:

			regards, tom lane

In response to

pgsql-interfaces by date

Next:From: Michael MeskesDate: 2009-02-25 15:54:29
Subject: Re: C Stored Function with ECPG
Previous:From: Bob HenkelDate: 2009-02-24 01:04:04
Subject: C Stored Function with ECPG

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