Re: binary bytea - Mailing list pgsql-novice

From Tom Lane
Subject Re: binary bytea
Date
Msg-id 1741.1081566935@sss.pgh.pa.us
Whole thread Raw
In response to binary bytea  (David Kitzinger ARA/SWD <David.Kitzinger@ara.com>)
List pgsql-novice
David Kitzinger ARA/SWD <David.Kitzinger@ara.com> writes:
> I'm confused. I have a bytea column that should be binary format
> (right?), yet PQfformat() says it is NOT binary

The column datatype has nothing to do with whether the data is presented
in binary or textual format.  The way you determine that is by making a
query in the right way.  See for instance the resultFormat parameter of
PQexecParams.

            regards, tom lane

pgsql-novice by date:

Previous
From: David Kitzinger ARA/SWD
Date:
Subject: binary bytea
Next
From: "M. Bastin"
Date:
Subject: Re: binary bytea