Re: encode(bytea_value, 'escape') in PostgreSQL 9.0 - Mailing list pgsql-general

From Florian Weimer
Subject Re: encode(bytea_value, 'escape') in PostgreSQL 9.0
Date
Msg-id 82ei9uaolq.fsf@mid.bfk.de
Whole thread Raw
In response to Re: encode(bytea_value, 'escape') in PostgreSQL 9.0  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
* Tom Lane:

> Florian Weimer <fweimer@bfk.de> writes:
>> Put differently, I think it's rather odd that in 9.0, both
>> encode(bytea_value, 'escape') and encode(bytea_value, 'hex') output
>> hexadecimal values.
>
> I don't believe that; encode produces text not bytea, so its result
> is not affected by this setting.

And you are right, as usual.  It turns out that we've got a
double-encoding issue in the loader.  How embarrassing.

--
Florian Weimer                <fweimer@bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: encode(bytea_value, 'escape') in PostgreSQL 9.0
Next
From: David Kerr
Date:
Subject: Problems Authenticating against OpenLDAP