Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id A7EBE9FB5EF for ; Thu, 28 Jun 2007 12:21:07 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 65341-04 for ; Thu, 28 Jun 2007 12:21:03 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 549209FB4C3 for ; Thu, 28 Jun 2007 12:21:03 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l5SFKuIq005093; Thu, 28 Jun 2007 11:20:57 -0400 (EDT) To: Andreas Joseph Krogh cc: pgsql-sql@postgresql.org Subject: Re: Is index usage in LIKE-queries with UTF-8 implemented in PG-8.3 ? In-reply-to: <200706281630.16455.andreak@officenet.no> References: <200706281630.16455.andreak@officenet.no> Comments: In-reply-to Andreas Joseph Krogh message dated "Thu, 28 Jun 2007 16:30:16 +0200" Date: Thu, 28 Jun 2007 11:20:56 -0400 Message-ID: <5092.1183044056@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/235 X-Sequence-Number: 28725 Andreas Joseph Krogh writes: > Anybody knows if the following query will use an index-scan in PG-8.3? > SELECT name FROM person WHERE name LIKE 'and%'; > I know this works in "C"-locale, but I need it with UTF-8, "C locale" and "UTF8" are entirely orthogonal things. regards, tom lane