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

From Tom Lane
Subject Re: case-insensitive database
Date
Msg-id 2786.1063596417@sss.pgh.pa.us
Whole thread Raw
In response to Re: case-insensitive database  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
List pgsql-general
Stephan Szabo <sszabo@megazone.bigpanda.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

pgsql-general by date:

Previous
From: Avi Schwartz
Date:
Subject: is General Bits Issue # 43 correct?
Next
From: "Muhyiddin A.M Hayat"
Date:
Subject: The NT services Cygwin PostgreSQL installatio