Re: Case sensitivity - Mailing list pgsql-general

From Tom Lane
Subject Re: Case sensitivity
Date
Msg-id 16183.1123599767@sss.pgh.pa.us
Whole thread Raw
In response to Re: Case sensitivity  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: Case sensitivity  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
Martijn van Oosterhout <kleptog@svana.org> writes:
> Another option would be to create a new datatype 'itext' which works
> like text except it compares case insensetively. PostgreSQL is flexible
> like that. Here's something to get you started, see below for example.

> http://svana.org/kleptog/pgsql/type_itext.sql

> At the moment it uses SQL functions for the comparisons, for production
> you'd probably want to have them in C for performance.

I believe there is a C-coded type like this on gborg ("citext" is the
name I think).

            regards, tom lane

pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Cross database queries
Next
From: "Salem Berhanu"
Date:
Subject: postgres & server encodings