Re: bytea encode performance issues

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: bytea encode performance issues
Дата
Msg-id 20080807143538.GC4171@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: bytea encode performance issues  ("Merlin Moncure" <mmoncure@gmail.com>)
Ответы Re: bytea encode performance issues  (Klint Gore <kgore4@une.edu.au>)
Список 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 по дате отправления:

Предыдущее
От: Tom Tom
Дата:
Сообщение: pg_restore fails on Windows
Следующее
От: Sim Zacks
Дата:
Сообщение: Re: bytea encode performance issues