Re: whats the standard text search query? - Mailing list pgsql-general

From Michael Glaesemann
Subject Re: whats the standard text search query?
Date
Msg-id 9B1C8746-B8F4-411B-9205-F47DCABFD34C@seespotcode.net
Whole thread Raw
In response to whats the standard text search query?  (Pedro <pedro100@gmail.com>)
List pgsql-general
On May 30, 2006, at 12:46 , Pedro wrote:

> SELECT * FROM table WHERE name like '%searchstring%' OR description
> like '%searchstring%';
>
> that doesnt really looks eficient... well... actually it works with
> no problem.

Depending on your needs, that may work just fine. PostgreSQL includes
regex matching as well.

> anyway... what's the standard query for a text search?

If you're looking for full text search, take a look at tsearch2 in
contrib.

Michael Glaesemann
grzm seespotcode net




pgsql-general by date:

Previous
From: Pedro
Date:
Subject: whats the standard text search query?
Next
From: Francisco Reyes
Date:
Subject: Re: Status of gist locking in 8.1.3?