Case Insensitive searches - Mailing list pgsql-sql

From Mike Gould
Subject Case Insensitive searches
Date
Msg-id 20080804135438.1a0de37e@mail.allcoast.net
Whole thread Raw
Responses Re: Case Insensitive searches  ("Richard Broersma" <richard.broersma@gmail.com>)
List pgsql-sql
In the application that we are working on, all data searches must be case insensitive. 
 
Select * from test where column1 = 'a' and Select * from test where column1 = 'A' should always be the same and use the index if column1 is indexed.  In order to do this am I going to be required to use the lower() on all selects in order to make sure that they are case insensitive?  In some db's if you use a lower() or upr() it will always do a table scan instead of using a index


Best Regards,

Michael Gould, Manager Information Technology
All Coast Intermodal Services, Inc.
First Coast Intermodal Services, Inc.
First Coast Logistical Services, LLC.
904-226-0978
 
 

pgsql-sql by date:

Previous
From: "Marcin Krawczyk"
Date:
Subject: Re: return setof record - strange behavior
Next
From: Tom Lane
Date:
Subject: Re: return setof record - strange behavior