Re: [ADMIN] About lower and uppercase - Mailing list pgsql-general

From Christoph Dalitz
Subject Re: [ADMIN] About lower and uppercase
Date
Msg-id 20021105140103.0c4d6a3a.christoph.dalitz@hs-niederrhein.de
Whole thread Raw
List pgsql-general
Date: Tue, 05 Nov 2002 09:22:37 +0100
From: frbn <frbn@efbs-seafrigo.fr>
>
> select * from fruits where fruit_name ~* 'orange';
>
Does this query ever use an index on fruit_name?

AFAIK the most reliant solution is the previously suggested
"where lower(fruit_name) = 'orange'"
AND creating indices only on lower(attributename).

Beware however that there are some letters that have no
uppercase/lowercase equivalent (the letter "Eszet" (ß) in German
is an example for a letter that has no uppercase equivalent).
That should not be such an issue as a proper implementation of
upper()/lower() would leave these letters alone.

Christoph Dalitz

pgsql-general by date:

Previous
From: Florian Litot
Date:
Subject: Re: log file?
Next
From: Christoph Dalitz
Date:
Subject: Re: executing delete in a case statement?