Re: Case insensitive string comparison? - Mailing list pgsql-sql

From tjk@tksoft.com
Subject Re: Case insensitive string comparison?
Date
Msg-id 200105211153.EAA24780@smtp3.tksoft.com
Whole thread Raw
In response to Re: Case insensitive string comparison?  (Cedar Cox <cedarc@visionforisrael.com>)
List pgsql-sql
You can index the lower(...) queries, but you can't for the
regex queries.


Troy

> 
> 
> On Tue, 15 May 2001, Karel Zak wrote:
> 
> > On Tue, May 15, 2001 at 02:48:24PM +0200, Borek Lupomìský wrote:
> > >    Is there an operator for case insensitive string comparison, or
> > > should I use regular expression matching with ~* '^string$'?
> > 
> >  possibility:
> > 
> >     - use upper() / lower() inside query
> 
> Ok, this is probably a really silly question:  which is faster?
> I expect they are nearly identical code.  Just wondering...
> 
> -Cedar
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
> 
> http://www.postgresql.org/users-lounge/docs/faq.html
> 



pgsql-sql by date:

Previous
From: Karel Zak
Date:
Subject: Re: Case insensitive string comparison?
Next
From: Tom Lane
Date:
Subject: Re: HELP: what's wrong with my PL/PSQL function??