Re: 'like' refuses to use an index???

Поиск
Список
Период
Сортировка
От Dima Tkach
Тема Re: 'like' refuses to use an index???
Дата
Msg-id 3FF1EFE8.80406@openratings.com
обсуждение исходный текст
Ответ на Re: 'like' refuses to use an index???  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: 'like' refuses to use an index???
Список pgsql-general
Tom Lane wrote:

>Dima Tkach <dmitry@openratings.com> writes:
>
>
>>Does anyone have any idea what could be wrong here?
>>
>>
>
>You didn't initdb in C locale ...
>
>            regards, tom lane
>
>
Ouch!
Is there any way to fix that without recreating the database?
Also, are you sure about this? Because the text comparison operators do
seem to work fine...

name like 'blah%' does not work, but name >= 'blah' and name < 'blai'
*does*... aren't these locale-dependent too?

Thanks a lot for your help!

Dima



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 'like' refuses to use an index???
Следующее
От: "Keith C. Perry"
Дата:
Сообщение: Re: 'like' refuses to use an index???