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 65D018B9CEE for ; Mon, 14 Feb 2005 22:31:56 +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 80150-10 for ; Mon, 14 Feb 2005 22:31:46 +0000 (GMT) Received: from megazone.bigpanda.com (megazone.bigpanda.com [64.147.171.210]) by svr1.postgresql.org (Postfix) with ESMTP id 62EBB8B9CE4 for ; Mon, 14 Feb 2005 22:31:45 +0000 (GMT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 24EF03567C; Mon, 14 Feb 2005 14:31:46 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 23A8E34D5B; Mon, 14 Feb 2005 14:31:46 -0800 (PST) Date: Mon, 14 Feb 2005 14:31:46 -0800 (PST) From: Stephan Szabo To: Ivan Voras Cc: PFC , pgsql-performance@postgresql.org Subject: Re: String matching In-Reply-To: <4211263B.7080003@fer.hr> Message-ID: <20050214143050.R11070@megazone.bigpanda.com> References: <421102A7.4090006@fer.hr> <42110AB2.1010903@fer.hr> <20050214124119.C4920@megazone.bigpanda.com> <42110DCC.4040706@fer.hr> <20050214141029.W9640@megazone.bigpanda.com> <4211263B.7080003@fer.hr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/218 X-Sequence-Number: 10547 On Mon, 14 Feb 2005, Ivan Voras wrote: > Stephan Szabo wrote: > > On Mon, 14 Feb 2005, Ivan Voras wrote: > > >>Could you give me an example for this, or point me to the relevant > >>documentation? > > > > > http://www.postgresql.org/docs/8.0/interactive/indexes-opclass.html > > Thanks! I didn't know this and I certainly didn't think it would be that > easy :) Well, it's not perfect. It requires a separate index from one for normal comparisons, so it's trading modification speed for LIKE lookup speed.