pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ted Rolle <ted@tvlconn.com>
To: 'Stephan Szabo' <sszabo@megazone23.bigpanda.com>
To: Robert.Farrugia@go.com.mt
Cc: pgsql-admin@postgresql.org
Subject: Re: Efficient String searching
Date: Tue, 25 Sep 2001 11:23:27 -0700
Message-ID: <001701c145ef$2c004500$ab00a8c0@ted> (raw)
In-Reply-To: <Pine.BSF.4.21.0109251041010.10402-100000@megazone23.bigpanda.com>

Like an implementation of Boyer-Moore-...?

-----Original Message-----
From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Stephan Szabo
Sent: September 25, 2001 10:43 AM
To: Robert.Farrugia@go.com.mt
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Efficient String searching


On Tue, 25 Sep 2001 Robert.Farrugia@go.com.mt wrote:

> Hi,
> 
> I have the following problem.  When doing string searches using the ilike
> command, no indexes are being used.  This is giving performance problems,
> whereas it takes longer to sequentially search the whole table.  Am i
> missing something about searching for strings ?  Are there any efficient
> methods than using regular expressions or like ?

Unless your pattern is anchored at the start, indexes don't get used.  In
addition, if you're in a locale other than C, indexes don't get used.
It depends on the kind of string searches you're doing.  If you're looking
for words in a longer string, you probably want to look at a full text
indexing solution.  IIRC, there's one in contrib and a few others made by 
people on the lists.


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster




view thread (3+ messages)

Message-ID: <001701c145ef$2c004500$ab00a8c0@ted>
Permalink:  ../001701c145ef$2c004500$ab00a8c0@ted/
Also on:    postgresql.org/message-id/001701c145ef$2c004500$ab00a8c0@ted

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: ted@tvlconn.com, sszabo@megazone23.bigpanda.com, Robert.Farrugia@go.com.mt
  Subject: Re: Efficient String searching
  In-Reply-To: <001701c145ef$2c004500$ab00a8c0@ted>
  References: <Pine.BSF.4.21.0109251041010.10402-100000@megazone23.bigpanda.com> <001701c145ef$2c004500$ab00a8c0@ted>

* 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