Re: bytea encode performance issues - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: bytea encode performance issues
Date
Msg-id 20080807143538.GC4171@alvh.no-ip.org
Whole thread Raw
In response to Re: bytea encode performance issues  ("Merlin Moncure" <mmoncure@gmail.com>)
Responses Re: bytea encode performance issues
List pgsql-general
Merlin Moncure escribió:

> er, I see the problem (single piece of text with multiple encodings
> inside) :-).  ok, it's more complicated than I thought.  still, you
> need to convert the email to utf8.  There simply must be a way,
> otherwise your emails are not well defined.  This is a client side
> problem...if you push it to the server in ascii, you can't use any
> server side text operations reliably.

I think the solution is to get the encoding from the email header and
the set the client_encoding to that.  However, as soon as an email with
an unsopported encoding comes by, you are stuck.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-general by date:

Previous
From: Tom Tom
Date:
Subject: pg_restore fails on Windows
Next
From: Sim Zacks
Date:
Subject: Re: bytea encode performance issues