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

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Spiros Ioannou <sivann(at)inaccess(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to access large objects in Postgresql c-language functions?
Date: 2015-01-26 20:03:01
Message-ID: CAFj8pRCisjLFoZn9f1xNWC-NA=vnHPn_hix0BHNe1NRp4fMOwQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2015-01-26 20:54 GMT+01:00 Spiros Ioannou <sivann(at)inaccess(dot)com>:

> 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.
>

No, it doesn't need - you can call these functions via DirectFunctionCall
interface

you can look to contrib/lo module for example

Regards

Pavel

>
> Regards,
>
> Spiros
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andy Colson 2015-01-26 20:05:07 Re: check if the same function is already running, then exit!
Previous Message Pavel Stehule 2015-01-26 20:01:48 Re: check if the same function is already running, then exit!