Re: Postgres case insensitive searches - Mailing list pgsql-general

From John R Pierce
Subject Re: Postgres case insensitive searches
Date
Msg-id 51CF1B90.4040207@hogranch.com
Whole thread Raw
In response to Re: Postgres case insensitive searches  (bhanu udaya <udayabhanu1984@hotmail.com>)
List pgsql-general
On 6/29/2013 9:24 AM, bhanu udaya wrote:
> Upper and Lower functions are not right choice when the table is > 2.5
> million and where we also have heavy insert transactions.
>
> I doubt, if we can cache the table if there are frequent
> inserts/updates.  The good idea would be to get the DB to case
> insenstive configuration like SQL Server. I would go for this
> solution, if postgres supports.

you need an INDEX on lower(field) or upper(field).   this is only
computed when values are inserted.

if you like a specific feature of SQL Server, then by all means, use SQL
Server.   postgres does not and will not support automatic case
insensitive data.

--
john r pierce                                      37N 122W
somewhere on the middle of the left coast



pgsql-general by date:

Previous
From: bhanu udaya
Date:
Subject: Re: Postgres case insensitive searches
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Postgres case insensitive searches