Re: case-insensitive database

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
Cc: Relaxin <noname(at)spam(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: case-insensitive database
Date: 2003-09-15 03:26:57
Message-ID: 2786.1063596417@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com> writes:
> 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.

Another possibility is to create a 'case insensitive text' datatype
that has its own case-insensitive comparison operators and associated
btree opclass. You would want to create an implicit cast to text and
an automatic cast from text so as to take advantage of the existing
text-type operations. I'm not sure whether this would work cleanly
or would result in can't-choose-the-operator-to-use errors, but it'd
be worth trying.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Network Administrator 2003-09-15 03:56:52 Re: State of Beta 2
Previous Message Avi Schwartz 2003-09-15 03:23:33 is General Bits Issue # 43 correct?