Re: C Stored Function with ECPG

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: C Stored Function with ECPG
Дата
Msg-id 29891.1235440048@sss.pgh.pa.us
обсуждение исходный текст
Ответ на C Stored Function with ECPG  (Bob Henkel <bob.henkel@gmail.com>)
Список pgsql-interfaces
Bob Henkel <bob.henkel@gmail.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:
http://www.postgresql.org/docs/8.3/static/spi.html
        regards, tom lane


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Bob Henkel
Дата:
Сообщение: C Stored Function with ECPG
Следующее
От: Michael Meskes
Дата:
Сообщение: Re: C Stored Function with ECPG