| From: | Bruce Momjian <bruce(at)momjian(dot)us> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | hernan gonzalez <hgonzalez(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org |
| Subject: | Re: text and bytea |
| Date: | 2008-03-04 03:29:17 |
| Message-ID: | 200803040329.m243THK24433@momjian.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Tom Lane wrote:
> "hernan gonzalez" <hgonzalez(at)gmail(dot)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(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://postgres.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2008-03-04 03:58:45 | Re: |
| Previous Message | Bruce Momjian | 2008-03-04 03:19:53 | Re: [GENERAL] ts_headline |