Re: 'like' refuses to use an index??? - Mailing list pgsql-general

From Dima Tkach
Subject Re: 'like' refuses to use an index???
Date
Msg-id 3FF1EFE8.80406@openratings.com
Whole thread Raw
In response to Re: 'like' refuses to use an index???  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: 'like' refuses to use an index???  ("Keith C. Perry" <netadmin@vcsn.com>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: 'like' refuses to use an index???
Next
From: "Keith C. Perry"
Date:
Subject: Re: 'like' refuses to use an index???