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 71A4330F522; Mon, 23 Jun 2003 16:17:43 +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 03652-03; Mon, 23 Jun 2003 13:17:33 -0300 (ADT) Received: from snoopy.oit.edu (snoopy.OIT.EDU [140.211.135.12]) by svr1.postgresql.org (Postfix) with ESMTP id 65CD430F520; Mon, 23 Jun 2003 13:17:32 -0300 (ADT) Received: from cvc.net (purvine-141-62.oit.edu [140.211.141.62]) by snoopy.oit.edu (8.12.9/8.12.9/OIT-4.0) with ESMTP id h5NG3nWD002332; Mon, 23 Jun 2003 09:03:51 -0700 Message-ID: <3EF725CA.2060508@cvc.net> Date: Mon, 23 Jun 2003 09:07:38 -0700 From: Dennis Gearon Reply-To: gearond@cvc.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030507 X-Accept-Language: en-us, ru MIME-Version: 1.0 To: nolan@celery.tssi.com Cc: The Hermit Hacker , Jan Wieck , Bruce Momjian , Josh Berkus , Joe Conway , "Advocacy PostgreSQL" , PostgreSQL-general Subject: Re: [GENERAL] interesting PHP/MySQL thread References: <20030623053352.1457.qmail@celery.tssi.com> In-Reply-To: <20030623053352.1457.qmail@celery.tssi.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200306/186 X-Sequence-Number: 1398 Looks like there's some parts of that that would make a good todo. nolan@celery.tssi.com wrote: >>>Personally, if I want case insensitivity, I'll WRITE IT INTO THE CODE, >>>but I can see how some people might think that 'NOLAN', 'Nolan' and >>>'nolan' should be considered as the same data. >> >>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. > > Also, unlike PostgreSQL (at least in 7.3), if you define an index on > the column, mysql appears to use it for LIKE queries. > > "SELECT * FROM table WHERE field LIKE 'nolan%';" > > is very fast in mysql but not in 7.3, and even non-anchored LIKE searches > in mysql appear to be using the index. > > "SELECT * FROM table WHERE field LIKE '%nolan%';" > > executes considerably faster with an index on field than without one. > -- > Mike Nolan > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org >