Re: Case insensitive selects? - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Case insensitive selects?
Date
Msg-id 200102161957.OAA28548@candle.pha.pa.us
Whole thread Raw
In response to Re: Case insensitive selects?  (David Wheeler <david@wheeler.net>)
List pgsql-general
> Wouldn't it be more efficient to just have a single, case-insensitive
> index, and then have the query engine automagically compare to the index
> in a case-insensitive way? I'm assuming that this is the sort of approach
> MS takes, which is why one has to choose the sort order at installation
> time. If I choose case-insensitive Unicode, then I would expect the server
> to do these things for me behind the scenes:
>

Yes, our CREATE INDEX lower(col) already does that, but you do have to
use lower(col) when doing the query.


--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-general by date:

Previous
From: David Wheeler
Date:
Subject: Re: Case insensitive selects?
Next
From: David Wheeler
Date:
Subject: Re: Case insensitive selects?