Re: encode(bytea_value, 'escape') in PostgreSQL 9.0

From: Florian Weimer <fweimer(at)bfk(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: encode(bytea_value, 'escape') in PostgreSQL 9.0
Date: 2010-12-06 15:49:05
Message-ID: 82ei9uaolq.fsf@mid.bfk.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

* Tom Lane:

> Florian Weimer <fweimer(at)bfk(dot)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(at)bfk(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Kerr 2010-12-06 17:00:19 Problems Authenticating against OpenLDAP
Previous Message Tom Lane 2010-12-06 15:10:59 Re: encode(bytea_value, 'escape') in PostgreSQL 9.0