Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id E61C1B5FFBA for ; Mon, 6 Jun 2011 17:30:17 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 22914-01 for ; Mon, 6 Jun 2011 20:30:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.yitter.info (mail.yitter.info [208.86.224.201]) by mail.postgresql.org (Postfix) with ESMTP id 3E56FB60062 for ; Mon, 6 Jun 2011 17:29:49 -0300 (ADT) Received: from shinkuro.com (external.shinkuro.com [66.92.164.104]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.yitter.info (Postfix) with ESMTPSA id 9EE051ECB41C for ; Mon, 6 Jun 2011 20:29:47 +0000 (UTC) Date: Mon, 6 Jun 2011 16:29:46 -0400 From: Andrew Sullivan To: pgsql-general@postgresql.org Subject: Re: case sensitivity? Message-ID: <20110606202946.GG37813@shinkuro.com> Mail-Followup-To: Andrew Sullivan , pgsql-general@postgresql.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201106/124 X-Sequence-Number: 176557 On Mon, Jun 06, 2011 at 10:24:45PM +0200, Heine Ferreira wrote: > I basicically want to avoid using upper in comparisons. > Has anyone tried this? > Do you know if this will work? There's a contrib module that will allow you to do this. See the citext datatype. A -- Andrew Sullivan ajs@crankycanuck.ca