How to get PGconn inside a user-defined C function?

Поиск
Список
Период
Сортировка
От James Cribb
Тема How to get PGconn inside a user-defined C function?
Дата
Msg-id D10ACC8031A3FD47A7860D3590D6A1D10A465F@zoom-ads.zoomnet.zoom.com.au
обсуждение исходный текст
Список pgsql-general
I want to write a C function I can call from SQL that operates on a large
object, but the lo_*() functions all take a PGconn* as the first argument,
and that is not passed to user-defined functions.  How do I get the PGconn*
for the connection that is invoking the function?  (I can't afford to open a
new connection every time the function is called.)

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

Предыдущее
От: Adam Haberlach
Дата:
Сообщение: Re: Re: Large Objects
Следующее
От: Vadim Govorov
Дата:
Сообщение: Trouble with WIN charset