Re: case-insensitive database - Mailing list pgsql-general

From Stephan Szabo
Subject Re: case-insensitive database
Date
Msg-id 20030914172223.W53960@megazone.bigpanda.com
Whole thread Raw
In response to Re: case-insensitive database  ("Relaxin" <noname@spam.com>)
Responses Re: case-insensitive database  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Sat, 13 Sep 2003, Relaxin wrote:

> No, I mean the data.
>
> select * from stocks where symbol = 'AADBX'
> and
> select * from stocks where symbol = 'aadbx'
>
> would bring up the same result set.

Potentially on some systems it'd be possible to
generate a case insensitive collation as part of a locale
and then use such for LC_COLLATE on initdb which would make all
comparisons of text fields case insensitive.  That wouldn't
let you choose some case sensitive and case insensitive
right now (until we supported different collations within
one database).  Others have already given most of the normal
query change ways already I believe (ilike, using upper or
lower, etc).

pgsql-general by date:

Previous
From: darren@crystalballinc.com
Date:
Subject: Re: case-insensitive database
Next
From: Gabriele Bartolini
Date:
Subject: How to remove CLUSTERs and 'partitioning tables'