Re: "like" and index

From: Andrzej Zawadzki <zawadaa(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: "like" and index
Date: 2009-02-26 13:06:09
Message-ID: 49A693C1.9060201@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tomasz Olszak 2009-02-26 13:56:32 Re: Re: Problem With using PERL::DBI in plperlu function
Previous Message Peter Hinse 2009-02-26 12:24:24 Re: lseek