Re: "like" and index - Mailing list pgsql-admin

From Andrzej Zawadzki
Subject Re: "like" and index
Date
Msg-id 49A693C1.9060201@gmail.com
Whole thread Raw
In response to Re: "like" and index  ("Daniel J. Summers" <daniel@djs-consulting.com>)
List pgsql-admin
Daniel J. Summers wrote:
> Andrzej Zawadzki wrote:
>> Daniel J. Summers wrote:
>>
>>> Tony Liao wrote:
>>>
>>>> I try to explain analyze,but it doesn't work ,it use seq scan.
>>>>
>>> Generally speaking, LIKE doesn't use indexes.
>>>
>> ?! That's not true at all!!
>>
[...]
> PostgreSQL (the great subject of this mailing list) doesn't do it with
> a standard index (5) - you've got to use a special operator class.

Please try... with "C" locales. Works out of the box.

--
Andrzej Zawadzki

pgsql-admin by date:

Previous
From: Peter Hinse
Date:
Subject: Re: lseek
Next
From: Tomasz Olszak
Date:
Subject: Re: Re: Problem With using PERL::DBI in plperlu function