X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5695653982 for ; Mon, 11 Apr 2005 04:02:07 -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 10773-09 for ; Mon, 11 Apr 2005 07:02:05 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id BC2FD5395E for ; Mon, 11 Apr 2005 04:02:03 -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 j3B721pO022594; Mon, 11 Apr 2005 03:02:01 -0400 (EDT) To: Theo Galanakis Cc: pgsql-admin@postgresql.org Subject: Re: Mysql to postgres In-reply-to: References: Comments: In-reply-to Theo Galanakis message dated "Mon, 11 Apr 2005 16:26:06 +1000" Date: Mon, 11 Apr 2005 03:02:01 -0400 Message-ID: <22593.1113202921@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: 200504/134 X-Sequence-Number: 17147 Theo Galanakis writes: > There may be a way to change the database in postgres to be case > insensitive. i.e. change some of the operations such as "text=text" to be > case insensitive. Does this sound Insane? I think it would be exceedingly unwise to muck with the standard behavior of a commonly used datatype. What some other people have done is to invent a variant datatype "citext" that shares most of the same operations as "text", but has case-insensitive comparisons. Then you only need to hack your table definitions, not your application code. http://gborg.postgresql.org/project/citext/projdisplay.php I think you could probably also do it by building a locale whose comparisons are case-insensitive, but I don't know enough about locales to be sure. regards, tom lane