Re: Wildcard searches & performance question - Mailing list pgsql-performance

From Rod Taylor
Subject Re: Wildcard searches & performance question
Date
Msg-id 1054065986.93507.43.camel@jester
Whole thread Raw
In response to Wildcard searches & performance question  (Grega Bremec <grega.bremec@noviforum.si>)
List pgsql-performance
> feasible in such cases? Or in other words, can I somehow optimize LIKE and
> regexp queries that start with a wildcard?

If they start with a wildcard, but end in character data you could
reverse the string and index that...

If they start and end with a wildcard, your best bet is a full text
indexing solution (various contrib modules).

--
Rod Taylor <rbt@rbt.ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

Attachment

pgsql-performance by date:

Previous
From: "scott.marlowe"
Date:
Subject: Re: Wildcard searches & performance question
Next
From: Peter Lavender
Date:
Subject: ...