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