X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id A463BD1B44B for ; Fri, 19 Dec 2003 14:39:23 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 15134-01 for ; Fri, 19 Dec 2003 10:38:38 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 0E037D1B43A for ; Fri, 19 Dec 2003 10:38:29 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id hBJEcE19009225; Fri, 19 Dec 2003 09:38:15 -0500 (EST) To: pg@fastcrypt.com Cc: Christopher Kings-Lynne , pgsql-performance@postgresql.org Subject: Re: is it possible to get the optimizer to use indexes In-reply-to: <1071827412.1627.25.camel@localhost.localdomain> References: <3FE1F5A1.6080908@geizhals.at> <60n09q9bqg.fsf@dev6.int.libertyrms.info> <1071789528.1629.10.camel@localhost.localdomain> <3FE256AA.8000707@familyhealth.com.au> <1071803317.1629.16.camel@localhost.localdomain> <6121.1071805440@sss.pgh.pa.us> <1071827412.1627.25.camel@localhost.localdomain> Comments: In-reply-to Dave Cramer message dated "19 Dec 2003 04:50:12 -0500" Date: Fri, 19 Dec 2003 09:38:14 -0500 Message-ID: <9224.1071844694@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/275 X-Sequence-Number: 5135 Dave Cramer writes: > So even in a north-american locale, such as en_CA this will be a > problem? If it's not "C" we won't try to optimize LIKE. I know en_US does not work (case-insensitive, funny rules about spaces, etc) and I would expect en_CA has the same issues. If you're using 7.4 you have the option to create a special index instead of re-initdb'ing your whole database. regards, tom lane