Or am I (again) not understanding how this works?
TIA,
Matt
On Sun, Jan 30, 2011 at 9:59 AM, Matt Warner <matt@xxxxxxxxxxxxxxxxxxxx> wrote:
Aha! Thanks for pointing that out. It's indexing now.Thanks!MattOn Sun, Jan 30, 2011 at 9:12 AM, Tom Lane <tgl@xxxxxxxxxxxxx> wrote:
Matt Warner <matt@xxxxxxxxxxxxxxxxxxxx> writes:That's not the same case he tested. The single-parameter form of
> 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
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