Re: text and bytea - Mailing list pgsql-general

From Bruce Momjian
Subject Re: text and bytea
Date
Msg-id 200803040329.m243THK24433@momjian.us
Whole thread Raw
In response to Re: text and bytea  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Tom Lane wrote:
> "hernan gonzalez" <hgonzalez@gmail.com> writes:
> > test=# create view vchartest as
> >  select encode(convert_to(c,'LATIN9'),'escape') as c1 from chartest;
>
> Hmm.  This isn't a very sensible combination that you've written here,
> but I see the point: encode(..., 'escape') is broken in that it fails
> to convert high-bit-set bytes into \nnn sequences.  At least in
> multibyte backend encodings, we *must* do that to produce valid textual
> output.  I suspect that for consistency we should do it regardless of
> backend encoding.

With Tom's encoding() patch applied I assume there is no TODO item here.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://postgres.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-general by date:

Previous
From: brian
Date:
Subject: Re: Connect to postgres from a dynamic IP
Next
From: Karl Denninger
Date:
Subject: Build 8.3 with OpenSSL on CentOS 5.x?