From: tjk@tksoft.com <tjk@tksoft.com>
To: cedarc@visionforisrael.com
Cc: pgsql-sql@postgresql.org
Subject: Re: Case insensitive string comparison?
Date: Mon, 21 May 2001 04:53:45 -0700 (PDT)
Message-ID: <200105211153.EAA24780@smtp3.tksoft.com> (raw)
In-Reply-To: <Pine.LNX.4.21.0105211214220.24294-100000@nanu.visionforisrael.com>
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
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tjk@tksoft.com, cedarc@visionforisrael.com
Subject: Re: Case insensitive string comparison?
In-Reply-To: <200105211153.EAA24780@smtp3.tksoft.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox