Re: Creating a case insensitive data type

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Dave <david(dot)majnemer(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Creating a case insensitive data type
Date: 2006-05-26 18:50:05
Message-ID: 20060526185005.GH27513@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, May 25, 2006 at 08:23:53PM -0400, Dave wrote:
> could CREATE TYPE be used to make a case insensitive version of varchar?
> So that doing something like LOWER(username) = 'joe' could just be done
> like username = 'joe' ?
>
> I want to try to avoid using CREATE TYPE with C extensions and using a
> new operator all over the place is not an option... How could I do this?
> Can I accomplish this via another method?

Try this:

http://gborg.postgresql.org/project/citext/projdisplay.php

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim C. Nasby 2006-05-26 19:06:29 Re: max(*)
Previous Message Andreas Pflug 2006-05-26 18:23:38 Re: Inefficient bytea escaping?