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 41F0A30F518; Mon, 23 Jun 2003 05:56:56 +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 89937-07; Mon, 23 Jun 2003 02:56:45 -0300 (ADT) Received: from houston.familyhealth.com.au (unknown [203.59.48.253]) by svr1.postgresql.org (Postfix) with ESMTP id 88A7730F47A; Mon, 23 Jun 2003 02:56:44 -0300 (ADT) Received: from mars (work-40.internal [192.168.0.40]) by houston.familyhealth.com.au (8.12.9/8.12.9) with SMTP id h5N5rqxa023406; Mon, 23 Jun 2003 13:53:52 +0800 (WST) (envelope-from chriskl@familyhealth.com.au) Message-ID: <029201c3394b$dc63e310$2800a8c0@mars> From: "Christopher Kings-Lynne" To: , "The Hermit Hacker" Cc: "The Hermit Hacker" , "Jan Wieck" , "Bruce Momjian" , "Josh Berkus" , "Joe Conway" , "\"\"\"Advocacy PostgreSQL\"\"\"" , "PostgreSQL-general" References: <20030623053352.1457.qmail@celery.tssi.com> Subject: Re: [GENERAL] interesting PHP/MySQL thread Date: Mon, 23 Jun 2003 13:54:07 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Archive-Number: 200306/180 X-Sequence-Number: 1392 > 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%';" Nonsense. PostgreSQL indexes such a thing quite happily. I've used that a lot. > 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. Hmmm - that seems iffy to me - have they invented a new field of index theory? Chris