Re: How to access large objects in Postgresql c-language functions? - Mailing list pgsql-general

From John R Pierce
Subject Re: How to access large objects in Postgresql c-language functions?
Date
Msg-id 54C69D00.1050002@hogranch.com
Whole thread Raw
In response to Re: How to access large objects in Postgresql c-language functions?  (Spiros Ioannou <sivann@inaccess.com>)
List 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 by date:

Previous
From: Suresh Raja
Date:
Subject: check if the same function is already running, then exit!
Next
From: Pavel Stehule
Date:
Subject: Re: [SQL] check if the same function is already running, then exit!