X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 90F3F52AA3 for ; Tue, 16 Aug 2005 05:25:26 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 05425-04 for ; Tue, 16 Aug 2005 08:25:22 +0000 (GMT) Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by svr1.postgresql.org (Postfix) with ESMTP id 67AE552AB6 for ; Tue, 16 Aug 2005 05:25:21 -0300 (ADT) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id D4FDF4163D1; Tue, 16 Aug 2005 09:25:16 +0100 (BST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id B8D3415EDA; Tue, 16 Aug 2005 09:24:02 +0100 (BST) Received: from mainbox.archonet.com ([127.0.0.1]) by localhost (mainbox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18203-07; Tue, 16 Aug 2005 09:24:00 +0100 (BST) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id C88D115ED9; Tue, 16 Aug 2005 09:23:59 +0100 (BST) Message-ID: <4301A29E.30703@archonet.com> Date: Tue, 16 Aug 2005 09:23:58 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: wisan watcharinporn Cc: pgsql-performance@postgresql.org Subject: Re: database encoding with index search problem References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.057 required=5 tests=[AWL=0.007, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200508/166 X-Sequence-Number: 13913 wisan watcharinporn wrote: > problem: > how can i configure database that can correct in sorting name and using > index scan in like 'xxxx%' search I think you'll want to read the following then have a quick search of the mailing list archives for "opclass" for some examples. http://www.postgresql.org/docs/8.0/static/sql-createindex.html http://www.postgresql.org/docs/8.0/static/indexes-opclass.html HTH -- Richard Huxton Archonet Ltd