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

From Jason Armstrong
Subject Re: PQfformat question and retrieving bytea data in C
Date
Msg-id CAF2ce0o+_LjzXuBEUha1CL3cL5rCNdnF7StwYZSaP9uZ627EMQ@mail.gmail.com
Whole thread Raw
In response to Re: PQfformat question and retrieving bytea data in C  (Chris Angelico <rosuav@gmail.com>)
Responses Re: PQfformat question and retrieving bytea data in C  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
List pgsql-general
Thank-you for the thoughtful answers.

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.

I found that my perl DBI interface wasn't happy either with the
'escape' output format, so I changed bytea_output to 'hex', and
DBD::Pg is also happy now (I also read that the hex format is more
efficient).

--
Jason Armstrong


pgsql-general by date:

Previous
From: Nicola Cisternino
Date:
Subject: Re: String comparision in PostgreSQL
Next
From: Craig Ringer
Date:
Subject: Re: String comparision in PostgreSQL