Re: Why are there client-only encodings?

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Why are there client-only encodings?
Дата
Msg-id
6763.1095170930@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Why are there client-only encodings? Peter Eisentraut <peter_e@gmx.net>
Re: Why are there client-only encodings? Tatsuo Ishii <t-ishii@sra.co.jp>
Re: Why are there client-only encodings? Tom Lane <tgl@sss.pgh.pa.us>
Peter Eisentraut  writes:
> Now I wonder why there are client-only encodings at all.  

Backend encodings must follow the rule that non-first bytes of multibyte
sequences must have the high bit set, so that they cannot be mistaken
for ASCII characters.  We allow client encodings to break that rule
though.  (If you look at psql's lexical processing you will see the cost
we pay for that, and why I don't want to relax the rule in the backend.)

The encodings that break this rule are some multibyte Far Eastern
encodings (I forget which, but Tatsuo would know).  There is certainly
no reason that any single-byte ASCII-superset encoding couldn't be
supported in the backend.
		regards, tom lane

В списке pgsql-hackers по дате отправления
От: Philip Warner
Дата:
От: Merlin Moncure
Дата:
FAQ