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 DF8B58B9FF6 for ; Mon, 14 Feb 2005 20:32:12 +0000 (GMT) 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 64524-02 for ; Mon, 14 Feb 2005 20:32:05 +0000 (GMT) Received: from pinus.cc.fer.hr (pinus.cc.fer.hr [161.53.73.18]) by svr1.postgresql.org (Postfix) with ESMTP id DADBD8B9F88 for ; Mon, 14 Feb 2005 20:32:03 +0000 (GMT) Received: from [161.53.72.113] (lara.cc.fer.hr [161.53.72.113]) by pinus.cc.fer.hr (8.12.2/8.12.2) with ESMTP id j1EKW0Ju018255; Mon, 14 Feb 2005 21:32:00 +0100 (MET) Message-ID: <42110AB2.1010903@fer.hr> Date: Mon, 14 Feb 2005 21:31:46 +0100 From: Ivan Voras User-Agent: Mozilla Thunderbird 1.0 (X11/20041213) X-Accept-Language: en-us, en MIME-Version: 1.0 To: PFC Cc: pgsql-performance@postgresql.org Subject: Re: String matching References: <421102A7.4090006@fer.hr> 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 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200502/213 X-Sequence-Number: 10542 PFC wrote: > > normally you shouldn't have to do anything, it should just work : > >> select field from table where field like 'abc%' > If it does not use the index, I saw on the mailing list that the > locale could be an issue. Oh yes, I forgot about that :( I do have LC_COLLATE (on latin2)... It's a shame PostgreSQL doesn't allow collation rules on specific fields - this field I'm using here will always be 7bit ASCII :(