Re: Executing an SQL query from an internal function...

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Executing an SQL query from an internal function...
Дата
Msg-id 20060725233158.GD23907@surnet.cl
обсуждение исходный текст
Ответ на Executing an SQL query from an internal function...  ("Redefined Horizons" <redefined.horizons@gmail.com>)
Список pgsql-general
Redefined Horizons wrote:
> If I am implementing an internal function in PostgreSQL with the C
> programming language, can I use one of the C API's to execute a query
> from within the function? Is there another way to execute an SQL query
> from within an internal function implemented in C?

The SPI interface is designed to do that.

http://www.postgresql.org/docs/8.1/static/spi.html

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: Reece Hart
Дата:
Сообщение: Re: Mapping/DB Migration tool
Следующее
От: "Christian Rengstl"
Дата:
Сообщение: question about default value and timestamp