Re: like performance w/o wildcards.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: like performance w/o wildcards.
Дата
Msg-id 17763.1060041937@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: like performance w/o wildcards.  (Joseph Shraibman <jks@selectacast.net>)
Ответы Re: like performance w/o wildcards.  (Joseph Shraibman <jks@selectacast.net>)
Список pgsql-general
Joseph Shraibman <jks@selectacast.net> writes:
> What percentage of locales have this problem?  Does latin1 have this problem?

Latin1 is an encoding, not a locale.  To a first approximation, I'd say
*all* non-C locales have some kind of sorting funny business.

> And what about my original idea, can LIKE be turned into an = when there are no wildcards?

It does ... if the index-conversion optimization is enabled at all.  Not
sure it's worth special-casing the '=' case otherwise.

            regards, tom lane

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

Предыдущее
От: Richard Welty
Дата:
Сообщение: Re: varchar, text and cidr
Следующее
От: Tom Lane
Дата:
Сообщение: Re: varchar, text and cidr