How to get PGconn inside a user-defined C function? - Mailing list pgsql-general

From James Cribb
Subject How to get PGconn inside a user-defined C function?
Date
Msg-id D10ACC8031A3FD47A7860D3590D6A1D10A465F@zoom-ads.zoomnet.zoom.com.au
Whole thread Raw
List 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 by date:

Previous
From: Adam Haberlach
Date:
Subject: Re: Re: Large Objects
Next
From: Vadim Govorov
Date:
Subject: Trouble with WIN charset