Re: Multibyte encoding vs. SQL_ASCII vs. locales and European languages - Mailing list pgsql-general

From Tom Lane
Subject Re: Multibyte encoding vs. SQL_ASCII vs. locales and European languages
Date
Msg-id 15392.1012330444@sss.pgh.pa.us
Whole thread Raw
In response to Re: Multibyte encoding vs. SQL_ASCII vs. locales and European languages  (Frank Joerdens <frank@joerdens.de>)
Responses Re: Multibyte encoding vs. SQL_ASCII vs. locales and European languages  (Frank Joerdens <frank@joerdens.de>)
List 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 by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: Moving my business to PostgreSQL
Next
From: Tom Lane
Date:
Subject: Re: Upgrade 7.0.3 -> 7.1.3 problems!