Re: full text index / search - Mailing list pgsql-general

From Tomas Vondra
Subject Re: full text index / search
Date
Msg-id df7860b5a70f1eb73a5aebe9b83b4a65.squirrel@sq.gransy.com
Whole thread Raw
In response to Re: full text index / search  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
List pgsql-general
On 18 Červen 2012, 11:04, Albe Laurenz wrote:
> Philipp Kraus wrote:
>> I have created a table with a text field under PG 9.1, that should
> store source codes. I would like to
>> search in this text field with regular expressions. I think I need a
> full-text-index, do I?
>> How can I create this index, do I need some additional extensions? The
> PG server runs under OSX
>> (installed on the DMG package).
>
> A full text index won't help you with regular expressions.
> It will only help with full text search using the match operator @@.

Also, it's possible to create regular index with custom operator class for
pattern matching queries. See this

http://www.postgresql.org/docs/9.1/interactive/indexes-opclass.html

Not a full-text index, though ...

T.


pgsql-general by date:

Previous
From: "Albe Laurenz"
Date:
Subject: Re: full text index / search
Next
From: utsav
Date:
Subject: Re: RETURNING MORE THAN ONE CUSTOM TYPE FROM FUNCTION