pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: Pierre A. Fortier <pfortier@uottawa.ca>
Cc: pgsql-performance@postgresql.org
Subject: Re: regular expression search
Date: Wed, 15 Jun 2005 09:21:06 +0800
Message-ID: <42AF8282.10706@familyhealth.com.au> (raw)
In-Reply-To: <Pine.LNX.4.44.0506141224190.22857-100000@slice.med.uottawa.ca>
References: <Pine.LNX.4.44.0506141224190.22857-100000@slice.med.uottawa.ca>

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




view thread (2+ messages)

Message-ID: <42AF8282.10706@familyhealth.com.au>
Permalink:  ../42AF8282.10706@familyhealth.com.au/
Also on:    postgresql.org/message-id/42AF8282.10706@familyhealth.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: chriskl@familyhealth.com.au, pfortier@uottawa.ca
  Subject: Re: regular expression search
  In-Reply-To: <42AF8282.10706@familyhealth.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox