Re: Case sensitivity

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Case sensitivity
Date: 2004-02-10 16:04:55
Message-ID: 20040210160455.GB28540@phlogiston.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Feb 10, 2004 at 01:02:55PM +0700, David Garamond wrote:
>
> I believe no. You can index on LOWER(f) or UPPER(f) but that still
> requires a query rewriting to WHERE LOWER(f) = .... You can also write
> INSERT triggers to convert values to upper case, but that still requires
> query rewriting if you're comparing with mixed-case values.

But you could do some tricks with rules (plus the indexes and
triggers you mentioned) in order to lower() or upper() the input, if
you happen to know where you're likely to have the problems.

It's certainly true, however, that from the point of view of keeping
your data clean, you want these steps handled before the data
actually gets into the database.

A

--
Andrew Sullivan | ajs(at)crankycanuck(dot)ca
The plural of anecdote is not data.
--Roger Brinner

In response to

Browse pgsql-general by date

  From Date Subject
Next Message lists 2004-02-10 16:07:00 Re: Join query on 1M row table slow
Previous Message Andrew Sullivan 2004-02-10 16:01:42 Re: [GENERAL] I want to use postresql for this app, but...