Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 5F2F29FB4D1 for ; Thu, 25 Jan 2007 13:46:08 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 39036-06 for ; Thu, 25 Jan 2007 13:46:03 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from wolff.to (wolff.to [66.93.197.194]) by postgresql.org (Postfix) with SMTP id 8D0E79FB419 for ; Thu, 25 Jan 2007 13:46:03 -0400 (AST) Received: (qmail 12827 invoked by uid 500); 25 Jan 2007 17:45:58 -0000 Date: Thu, 25 Jan 2007 11:45:58 -0600 From: Bruno Wolff III To: "Alexander B." Cc: "pgsql-admin@postgresql.org" Subject: Re: Case-sensitive Message-ID: <20070125174558.GA7220@wolff.to> Mail-Followup-To: Bruno Wolff III , "Alexander B." , "pgsql-admin@postgresql.org" References: <45B88BEC.5050209@yahoo.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45B88BEC.5050209@yahoo.com.br> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/246 X-Sequence-Number: 24402 On Thu, Jan 25, 2007 at 08:52:28 -0200, "Alexander B." wrote: > Hi, > > One developer asked me about case-sensitive, if its possible disable > Postgres not consider when using comparative functions. > Eg.: > select * from people > where upper(name) like upper('A%'); > > Is there any parameter that don't take in account case-sensitive, or any > other way to treat?? You can use ilike, though using upper (on the column, not the pattern) has the advantage that you can create functional indexes that can be used to speed things up in some cases. There is also an operator for doing case insensitive regular expression matching.