Re: ILIKE vs indices - Mailing list pgsql-hackers

From Greg Stark
Subject Re: ILIKE vs indices
Date
Msg-id CAM-w4HPPJFPFQLS5V2nK+76_REo-53mHbo9OEwuE0oM=Eyj6aQ@mail.gmail.com
Whole thread Raw
In response to Re: ILIKE vs indices  (Greg Stark <stark@mit.edu>)
List pgsql-hackers
On Sat, Dec 29, 2012 at 2:05 PM, Greg Stark <stark@mit.edu> wrote:
> I can't quite wrap my head around the idea of "LIKE" and collations
> having any meaningful interaction anyways. I certainly can't come up
> with anything better than "lower() like lower()" (or "upper() like
> upper()").

Hm. Maybe I spoke too fast. Perhaps we should just call strcasecmp()
character by character, or even call strcasecmp() on any substring of
the pattern that doesn't contain _ or % ? The latter would be pretty
hopeless to ever use a btree index though.

-- 
greg



pgsql-hackers by date:

Previous
From: Dimitri Fontaine
Date:
Subject: Re: Proposal: Store "timestamptz" of database creation on "pg_database"
Next
From: Stephen Frost
Date:
Subject: Re: Proposal: Store "timestamptz" of database creation on "pg_database"