Re: PQfformat question and retrieving bytea data in C - Mailing list pgsql-general

From Albe Laurenz
Subject Re: PQfformat question and retrieving bytea data in C
Date
Msg-id D960CB61B694CF459DCFB4B0128514C208588EB8@exadv11.host.magwien.gv.at
Whole thread Raw
In response to Re: PQfformat question and retrieving bytea data in C  (Jason Armstrong <ja@riverdrums.com>)
Responses Re: PQfformat question and retrieving bytea data in C  (Dmitriy Igrishin <dmitigr@gmail.com>)
Re: PQfformat question and retrieving bytea data in C  (Dmitriy Igrishin <dmitigr@gmail.com>)
List 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


pgsql-general by date:

Previous
From: "Albe Laurenz"
Date:
Subject: Re: Need help on autovacuum in postgres 9.1.2
Next
From: Sergey Konoplev
Date:
Subject: Re: Dropping a column on parent table doesn't propagate to children?