Re: BUG #4187: function to_tsvector not immutable

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Martin Sullivan" <ms08(at)zois(dot)co(dot)uk>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4187: function to_tsvector not immutable
Date: 2008-05-23 13:25:02
Message-ID: 15775.1211549102@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Martin Sullivan" <ms08(at)zois(dot)co(dot)uk> writes:
> The only wrinkle being that to_tsvector needs to be ALTERed
> to IMMUTABLE using the following (as user postgres):
> alter function to_tsvector(regconfig,text) immutable
> alter function to_tsvector(text) immutable

The current settings are intentional: the one-parameter form of
to_tsvector depends on a GUC parameter, so claiming it is immutable
is simply wrong. Please read the documentation concerning how to
use these functions with an index.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Dennis Gilmore 2008-05-23 13:36:53 BUG #4190: sparc64 test suite fails
Previous Message Heikki Linnakangas 2008-05-23 12:51:39 Re: BUG #4188: Array field column (varchar[]) cannot be cast to type "text"