X-Original-To: pgsql-advocacy-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 081A630F692; Mon, 23 Jun 2003 17:02:54 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 15337-02; Mon, 23 Jun 2003 14:02:43 -0300 (ADT) Received: from www.postgresql.com (www.postgresql.com [64.117.225.209]) by svr1.postgresql.org (Postfix) with ESMTP id 403FB30F688; Mon, 23 Jun 2003 14:02:35 -0300 (ADT) Received: from europa.janwieck.net (h00045a2e4e7c.ne.client2.attbi.com [24.131.181.55]) by www.postgresql.com (Postfix) with ESMTP id DEAD0CF6D04; Mon, 23 Jun 2003 11:57:17 -0300 (ADT) Received: from Yahoo.com (ismtp.afilias.com [216.217.55.254]) (authenticated) by europa.janwieck.net (8.11.6/8.11.6) with ESMTP id h5NEt6c17614; Mon, 23 Jun 2003 10:55:06 -0400 Message-ID: <3EF6F0D8.9070408@Yahoo.com> Date: Mon, 23 Jun 2003 08:21:44 -0400 From: Jan Wieck Organization: Unorganized User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lincoln Yeoh Cc: nolan@celery.tssi.com, The Hermit Hacker , Bruce Momjian , Josh Berkus , Joe Conway , Advocacy PostgreSQL , PostgreSQL-general Subject: Re: [GENERAL] interesting PHP/MySQL thread References: <20030623015333.E95856@hub.org> <5.2.1.1.1.20030623221452.02f7fd48@mbox.jaring.my> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.3 tagged_above=0.0 required=5.0 tests=EMAIL_ATTRIBUTION, QUOTED_EMAIL_TEXT, RCVD_FAKE_HELO_DOTCOM_2, REFERENCES, REPLY_WITH_QUOTES, USER_AGENT_MOZILLA_UA, X_ACCEPT_LANG X-Spam-Level: X-Archive-Number: 200306/193 X-Sequence-Number: 1405 Lincoln Yeoh wrote: > At 12:33 AM 6/23/2003 -0500, nolan@celery.tssi.com wrote: >> > >> > Oh, you mean like "SELECT * FROM table WHERE field ~* 'nolan';"? >> >>No, I mean as in "SELECT * FROM table WHERE field = 'nolan';" >> >>That will match values with any combination of upper and lower case >>letters that fold to 'nolan': 'Nolan', 'NOLAN', etc. > > For me that's a matter of taste. I prefer to use = for case sensitive and > lower(field)=lower('data') for case insensitive. I wonder if there is a > difference between using lower vs upper for case insensitivity but I've > never bothered to look deeply into it. In some character sets there might be. The German sz-ligature for example has no upper case equivalent, and in turkish the upper cases of i and y with two dots are exchanged. I prefer your example too and since we have functional indexes, it doesn't affect performance at all. Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com #