pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Diehl, Jeffrey <jdiehl@sandia.gov>
To: pgsql-sql@postgresql.org
To: pgsql-performance@postgresql.org
Subject: Re: Like search performance.
Date: Wed, 30 Apr 2003 10:33:17 -0700
Message-ID: <200304301033.18357.josh@agliodbs.com> (raw)
In-Reply-To: <B51F0C636E578A4E832D3958690CD73E0130C417@es04snlnt.sandia.gov>
References: <B51F0C636E578A4E832D3958690CD73E0130C417@es04snlnt.sandia.gov>

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




view thread (4+ messages)

Message-ID: <200304301033.18357.josh@agliodbs.com>
Permalink:  ../200304301033.18357.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200304301033.18357.josh@agliodbs.com

 · 

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-sql@postgresql.org
  Cc: josh@agliodbs.com, jdiehl@sandia.gov, pgsql-performance@postgresql.org
  Subject: Re: Like search performance.
  In-Reply-To: <200304301033.18357.josh@agliodbs.com>

* 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