Re: How to access large objects in Postgresql c-language functions?

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: How to access large objects in Postgresql c-language functions?
Дата
Msg-id 54C69D00.1050002@hogranch.com
обсуждение исходный текст
Ответ на Re: How to access large objects in Postgresql c-language functions?  (Spiros Ioannou <sivann@inaccess.com>)
Список pgsql-general
On 1/26/2015 11:54 AM, Spiros Ioannou wrote:
> But these need a connection to the postgresql backend. It seems an
> overkill for postgresql to connect to itself, I would prefer something
> more optimal. It seems for now that reading libpq's source code is the
> only way to go.
>

you use the SPI functions to execute queries from within a C function.

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



--
john r pierce                                      37N 122W
somewhere on the middle of the left coast



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

Предыдущее
От: Suresh Raja
Дата:
Сообщение: check if the same function is already running, then exit!
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: [SQL] check if the same function is already running, then exit!