Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group