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

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How to access large objects in Postgresql c-language functions?
Date: 2015-01-26 20:01:04
Message-ID: 54C69D00.1050002@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2015-01-26 20:01:48 Re: check if the same function is already running, then exit!
Previous Message Suresh Raja 2015-01-26 19:58:01 check if the same function is already running, then exit!