Re: Progress report on locale safe LIKE indexing

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Progress report on locale safe LIKE indexing
Дата
Msg-id 24217.998177668@sss.pgh.pa.us
обсуждение исходный текст
Ответ на RE: Progress report on locale safe LIKE indexing  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Progress report on locale safe LIKE indexing  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Now, if you look at the code that does the LIKE pattern matching you'll
> see that it does not use any locale features, it simply compares
> characters for equality based on their character codes, accounting for the
> wildcards.  Consequentially, this whole operation has nothing to do with
> locales.

But the LIKE code does know about multibyte character sets.  Is it safe
to assume that memcmp-based sorting will not make any mistakes with
multibyte characters?
        regards, tom lane


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: RE: Progress report on locale safe LIKE indexing
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: Re: [PATCHES] encoding names