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 DD0DD5289A for ; Tue, 14 Jun 2005 22:19:44 -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 35382-05 for ; Wed, 15 Jun 2005 01:19:36 +0000 (GMT) Received: from houston.familyhealth.com.au (houston.au.fhnetwork.com [203.22.197.21]) by svr1.postgresql.org (Postfix) with ESMTP id C38B452847 for ; Tue, 14 Jun 2005 22:19:32 -0300 (ADT) Received: from houston.familyhealth.com.au (localhost [127.0.0.1]) by houston.familyhealth.com.au (Postfix) with ESMTP id E771A24FF1; Wed, 15 Jun 2005 09:19:34 +0800 (WST) Received: from [127.0.0.1] (work-40.internal [192.168.0.40]) by houston.familyhealth.com.au (Postfix) with ESMTP id E514D24FEE; Wed, 15 Jun 2005 09:19:34 +0800 (WST) Message-ID: <42AF8282.10706@familyhealth.com.au> Date: Wed, 15 Jun 2005 09:21:06 +0800 From: Christopher Kings-Lynne User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Pierre A. Fortier" Cc: pgsql-performance@postgresql.org Subject: Re: regular expression search References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.063 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200506/326 X-Sequence-Number: 12963 Just read the docs in contrib/tsearch2 in the PostgreSQL distribution. Pierre A. Fortier wrote: > I search for particular strings using regular expressions (e.g. where > column ~* $query) through a text data type column which contains notes > (some html code like bold is included). > > It works but my question is whether there would be a way to speed up > searches? > >>From my limited investigation, I see the features "CREATE INDEX" and > "tsearch2" but I'm not clear on how these work, whether they would be > appropriate, and whether there would be a better approach. > > I'd appreciate being pointed in the right direction. > > Pierre > > > ---------------------------(end of broadcast)--------------------------- > TIP 7: don't forget to increase your free space map settings