Re: regular expression search

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: "Pierre A(dot) Fortier" <pfortier(at)uottawa(dot)ca>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: regular expression search
Date: 2005-06-15 01:21:06
Message-ID: 42AF8282.10706@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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 <b>bold</b> 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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message K C Lau 2005-06-15 02:46:56 SELECT LIMIT 1 VIEW Performance Issue
Previous Message Christopher Weimann 2005-06-14 23:59:37 Re: Most effective tuning choices for busy website?