X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id A22E2D1C994 for ; Thu, 31 Jul 2003 20:46:06 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 78478-08 for ; Thu, 31 Jul 2003 17:44:59 -0300 (ADT) Received: from mail-2.zoominternet.net (mail-2.zoominternet.net [63.67.120.22]) by svr1.postgresql.org (Postfix) with SMTP id 4A58FD1C9C8 for ; Thu, 31 Jul 2003 17:39:45 -0300 (ADT) Received: (qmail 7829 invoked from network); 31 Jul 2003 20:39:46 -0000 Received: from acs-24-154-209-142.zoominternet.net (HELO gmod.lajolla) ([24.154.209.142]) (envelope-sender ) by mail-2.zoominternet.net (qmail-ldap-1.03) with SMTP for ; 31 Jul 2003 20:39:46 -0000 Subject: Re: EXTERNAL storage and substring on long strings From: Scott Cain To: Tom Lane Cc: pgsql-performance@postgresql.org In-Reply-To: <18763.1059683520@sss.pgh.pa.us> References: <1059679600.1429.41.camel@localhost.localdomain> <18305.1059680697@sss.pgh.pa.us> <1059682839.5415.53.camel@localhost.localdomain> <18763.1059683520@sss.pgh.pa.us> Content-Type: text/plain Organization: Cold Spring Harbor Lab Message-Id: <1059683986.1428.59.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.3 Date: 31 Jul 2003 16:39:47 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/506 X-Sequence-Number: 2799 On Thu, 2003-07-31 at 16:32, Tom Lane wrote: > Scott Cain writes: > >> (BTW, if you are using a multibyte database encoding, then that's your > >> problem right there --- the optimization is practically useless unless > >> character and byte indexes are the same.) > > > I shouldn't be, but since it is an RPM, I can't be sure. > > Look at "psql -l" to see what encoding it reports for your database. > I see, encoding is a per database option. Since I've never set it, all my databases use sql_ascii. -- ------------------------------------------------------------------------ Scott Cain, Ph. D. cain@cshl.org GMOD Coordinator (http://www.gmod.org/) 216-392-3087 Cold Spring Harbor Laboratory