Re: case-insensitive database

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: Relaxin <noname(at)spam(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: case-insensitive database
Date: 2003-09-15 00:27:14
Message-ID: 20030914172223.W53960@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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).

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gabriele Bartolini 2003-09-15 00:34:46 How to remove CLUSTERs and 'partitioning tables'
Previous Message darren 2003-09-14 21:49:57 Re: case-insensitive database