Re: like performance w/o wildcards.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: like performance w/o wildcards.
Дата
Msg-id 13480.1060036538@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:
>> The index is for non-LIKE comparisons, like = and >.
>>
> My point is what is the difference?  If the index is done char by char then LIKE ought to
> be able to use the index to find 'F*', no matter what the locale is.  What can't you
> figure out what is before/after a given char?  Don't you have that information?  Don't you
> need it to create the index in the first place?

<yawn>  Read the archives.  We would love to use locale-sorted indexes
for LIKE, but we *can't*.  There are too many bizarre sorting rules.
(Hint: almost no locale does its sorting purely "char by char".)

            regards, tom lane

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

Предыдущее
От: Joseph Shraibman
Дата:
Сообщение: Re: like performance w/o wildcards.
Следующее
От: Jenny Zhang
Дата:
Сообщение: Re: [osdldbt-general] Re: [PERFORM] OSDL Database Test Suite 3 is