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 E20638B9CD1 for ; Mon, 14 Feb 2005 22:12:55 +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 79543-03 for ; Mon, 14 Feb 2005 22:12:50 +0000 (GMT) Received: from megazone.bigpanda.com (megazone.bigpanda.com [64.147.171.210]) by svr1.postgresql.org (Postfix) with ESMTP id 28F908B9CCE for ; Mon, 14 Feb 2005 22:12:49 +0000 (GMT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 86ECE35592; Mon, 14 Feb 2005 14:12:49 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 75E8235540; Mon, 14 Feb 2005 14:12:49 -0800 (PST) Date: Mon, 14 Feb 2005 14:12:49 -0800 (PST) From: Stephan Szabo To: Ivan Voras Cc: PFC , pgsql-performance@postgresql.org Subject: Re: String matching In-Reply-To: <42110DCC.4040706@fer.hr> Message-ID: <20050214141029.W9640@megazone.bigpanda.com> References: <421102A7.4090006@fer.hr> <42110AB2.1010903@fer.hr> <20050214124119.C4920@megazone.bigpanda.com> <42110DCC.4040706@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/216 X-Sequence-Number: 10545 On Mon, 14 Feb 2005, Ivan Voras wrote: > Stephan Szabo wrote: > > > You can also create an index using a _pattern_ops operator > > class which should be usable even with other collations. > > Could you give me an example for this, or point me to the relevant > documentation? Basically, you could have something like: create table test_table(a text); create index test_index on test_table(a text_pattern_ops); ------------------------------------------------------------------ http://www.postgresql.org/docs/8.0/interactive/indexes-opclass.html