Re: libpq (C++) - Insert binary data - Mailing list pgsql-general

From Merlin Moncure
Subject Re: libpq (C++) - Insert binary data
Date
Msg-id AANLkTimn-1q6=Pzb4PsChnX=QfhCFt-U+XZErZhLJ_r4@mail.gmail.com
Whole thread Raw
In response to Re: libpq (C++) - Insert binary data  (John R Pierce <pierce@hogranch.com>)
List pgsql-general
On Fri, Oct 1, 2010 at 3:08 AM, John R Pierce <pierce@hogranch.com> wrote:
>  On 09/30/10 11:58 PM, GOO Creations wrote:
>>
>>  thanks for this tip, but as far as I understand it libpqtypes is not part
>> of the original lipq libary .
>> This will result in the same problem as with the Qt libraries, it will add
>> another dependecy to my plugin, which is not allowed.
>
> take the source to libpqtypes, and static link it with your plugin.

yeah -- you would have to enable that via configure.  pulling in
libptypes just to pass bytea is probably overkill though considering
it can be done in stock libpq w/o too much effort.  To justify it, you
would want to be leveraging some of the other library features
(especially, array/composite passing, for which there is no reasonable
method via stock libpq).

merlin

pgsql-general by date:

Previous
From: Dave Page
Date:
Subject: Re: PostgreSQL 9.0 (x86-64) and Windows 7 (x86-64) - Unable to install
Next
From: "Andrus"
Date:
Subject: Re: Optimizing postgresql.conf for dedicated windows server 2003 x64 standard edition