Re: Full Text Index Scanning - Mailing list pgsql-general

From Matt Warner
Subject Re: Full Text Index Scanning
Date
Msg-id AANLkTin6ZXCSKHEbeex+_F9FzikZOE_rCsxQQ-5AufP3@mail.gmail.com
Whole thread Raw
In response to Re: Full Text Index Scanning  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Full Text Index Scanning  (Matt Warner <matt@warnertechnology.com>)
List pgsql-general
Aha! Thanks for pointing that out. It's indexing now.

Thanks!

Matt

On Sun, Jan 30, 2011 at 9:12 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Matt Warner <matt@warnertechnology.com> writes:
> Doesn't seem to work either. Maybe something changed in 9.1?
> create index test_idx on testtable using gin(to_tsvector(wordcolumn||'
> '||reverse(wordcolumn)));
> ERROR:  functions in index expression must be marked IMMUTABLE

That's not the same case he tested.  The single-parameter form of
to_tsvector isn't immutable, because it depends on the default text
search configuration parameter.  It should work, AFAICS, with the
two-parameter form.

                       regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Full Text Index Scanning
Next
From: Matt Warner
Date:
Subject: Re: Full Text Index Scanning