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

Поиск
Список
Период
Сортировка
От Frank Joerdens
Тема Re: Multibyte encoding vs. SQL_ASCII vs. locales and European languages
Дата
Msg-id 20020129180038.A17038@superfly.archi-me-des.de
обсуждение исходный текст
Ответ на Re: Multibyte encoding vs. SQL_ASCII vs. locales and European languages  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Multibyte encoding vs. SQL_ASCII vs. locales and European languages  (Einar Karttunen <ekarttun@cs.helsinki.fi>)
Re: Multibyte encoding vs. SQL_ASCII vs. locales and European languages  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Tue, Jan 29, 2002 at 10:56:37AM -0500, Tom Lane wrote:
> Frank Joerdens <frank@joerdens.de> writes:
> > Multibyte support is mainly recommended for character sets that don't
> > fit into a single byte (Chinese, Japanese, Korean), and locale support
> > is said to be mostly sufficient for European languages . . . what escapes
> > me is why I should bother with either of these when SQL_ASCII works just
> > fine with my mostly German users. I must be missing something, right?
>
> Sort ordering of non-7-bit-ASCII characters?  upper/lower case
> conversions that work as expected?  locale-aware formatting options
> in to_char and friends?

Hm, yes. I overlooked that - and it *would* be useful (though no one's
complained so far that their entries beginning with an umlaut don't
appear in the list a the appropriate place, which is presumably partly
due to the fact that not that many German words or names have an umlaut
as their first character).

>
> If you don't need any of that, then you won't need locale support.
>
> I agree that you have no use for multibyte support.

What about the performance penalty that you're warned about with
locales (in the admin guide)? Does multibyte support entail the same
penalty? If not, then multibyte encoding, providing a superset of the
locale functionality (correct?), would be better than locales, right?

Regards, Frank

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Moving my business to PostgreSQL
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: unique & update