X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id BEA5B52AE5 for ; Tue, 9 Aug 2005 12:03:04 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 28851-09 for ; Tue, 9 Aug 2005 15:02:55 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id B8CE752A71 for ; Tue, 9 Aug 2005 12:02:53 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j79F2lUO016184; Tue, 9 Aug 2005 11:02:47 -0400 (EDT) To: Martijn van Oosterhout Cc: Frank Millman , pgsql-general@postgresql.org Subject: Re: Case sensitivity In-reply-to: <20050809095743.GB8244@svana.org> References: <42F72C06.8000000@archonet.com> <20050809095743.GB8244@svana.org> Comments: In-reply-to Martijn van Oosterhout message dated "Tue, 09 Aug 2005 11:57:48 +0200" Date: Tue, 09 Aug 2005 11:02:47 -0400 Message-ID: <16183.1123599767@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200508/434 X-Sequence-Number: 81842 Martijn van Oosterhout 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