pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feedregular expression search
2+ messages / 2 participants
[nested] [flat]
* regular expression search
@ 2005-06-14 16:40 Pierre A. Fortier <pfortier@uottawa.ca>
0 siblings, 1 reply; 2+ messages in thread
From: Pierre A. Fortier @ 2005-06-14 16:40 UTC (permalink / raw)
To: pgsql-performance
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?
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: regular expression search
@ 2005-06-15 01:21 Christopher Kings-Lynne <chriskl@familyhealth.com.au>
parent: Pierre A. Fortier <pfortier@uottawa.ca>
0 siblings, 0 replies; 2+ messages in thread
From: Christopher Kings-Lynne @ 2005-06-15 01:21 UTC (permalink / raw)
To: Pierre A. Fortier <pfortier@uottawa.ca>; +Cc: 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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2005-06-15 01:21 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-06-14 16:40 regular expression search Pierre A. Fortier <pfortier@uottawa.ca>
2005-06-15 01:21 ` Christopher Kings-Lynne <chriskl@familyhealth.com.au>
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