Re: Multibyte encoding vs. SQL_ASCII vs. locales and European languages

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Multibyte encoding vs. SQL_ASCII vs. locales and European languages
Дата
Msg-id 15392.1012330444@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Multibyte encoding vs. SQL_ASCII vs. locales and European languages  (Frank Joerdens <frank@joerdens.de>)
Ответы Re: Multibyte encoding vs. SQL_ASCII vs. locales and European languages  (Frank Joerdens <frank@joerdens.de>)
Список pgsql-general
Frank Joerdens <frank@joerdens.de> writes:
> What about the performance penalty that you're warned about with
> locales (in the admin guide)?

You pay it if you don't select C locale at initdb time, true.

> Does multibyte support entail the same penalty?

AFAIR, MULTIBYTE doesn't kill LIKE optimization, but it does incur
a generalized performance penalty on all string-mashing operators.
Never tried to measure the size of the penalty; perhaps Tatsuo or
Hiroshi would know.

> If not, then multibyte encoding, providing a superset of the
> locale functionality (correct?), would be better than locales, right?

MULTIBYTE is *not* a superset of LOCALE; they are independently
enablable features.  Offhand I don't think they are both interesting
for the same character sets.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: Moving my business to PostgreSQL
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Upgrade 7.0.3 -> 7.1.3 problems!