Re: [PERFORM] Like search performance. - Mailing list pgsql-sql

From Josh Berkus
Subject Re: [PERFORM] Like search performance.
Date
Msg-id 200304301033.18357.josh@agliodbs.com
Whole thread Raw
In response to Like search performance.  ("Diehl, Jeffrey" <jdiehl@sandia.gov>)
List pgsql-sql
Mike,

> I have a fairly large table with a char(20) field in it which I search on
> quite a bit.  The problem is that I tend to do a lot of
> "...where field like '%-d%'" type searches on this field.
>
> Is there any to speed up this type of search?

Yes.  See the tsearch module in /contrib in your postgresql source.

--
-Josh Berkus
 Aglio Database Solutions
 San Francisco


pgsql-sql by date:

Previous
From: "Diehl, Jeffrey"
Date:
Subject: Like search performance.
Next
From: Rajesh Kumar Mallah
Date:
Subject: Re: replace function