Re: PQfformat question and retrieving bytea data in C

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Jason Armstrong *EXTERN*" <ja(at)riverdrums(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: PQfformat question and retrieving bytea data in C
Date: 2012-08-30 11:29:45
Message-ID: D960CB61B694CF459DCFB4B0128514C208588EB8@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jason Armstrong wrote:
> I have updated my C library to return the binary data correctly. I
> note the restriction on not being able to retrieve different columns
> in different formats.

Actually, PostgreSQL supports that if you use the line protocol
to talk to the server (see the description of "Bind (F)" in
http://www.postgresql.org/docs/9.1/static/protocol-message-formats.html)
.

Alas, this is not supported by the C API.
Maybe that would be a useful extension to libpq.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dmitriy Igrishin 2012-08-30 11:38:24 Re: PQfformat question and retrieving bytea data in C
Previous Message Sergey Konoplev 2012-08-30 11:29:36 Re: Dropping a column on parent table doesn't propagate to children?