BUG #4187: function to_tsvector not immutable

Поиск
Список
Период
Сортировка
От Martin Sullivan
Тема BUG #4187: function to_tsvector not immutable
Дата
Msg-id 200805230830.m4N8Uble097183@wwwmaster.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #4187: function to_tsvector not immutable  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      4187
Logged by:          Martin Sullivan
Email address:      ms08@zois.co.uk
PostgreSQL version: 8.3
Operating system:   Fedora Core 9
Description:        function to_tsvector not immutable
Details:

Postgres 8.3 now supports tsearch2 as standard and it's built into the
distribution. So, to_tsvector, tsvector, the '@@' operator &al are readily
available. 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

This is needed to allow CREATE INDEX to work with these functions and
the access methods GIN and GIST, else you get an error message about
indexes requiring immutable functions.

It should be added that the to_tsvector are declared immutable in the
8.2 contrib distribution.

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Thomas H."
Дата:
Сообщение: Re: BUG #4186: set lc_messages does not work
Следующее
От: "Murali Doss"
Дата:
Сообщение: BUG #4188: Array field column (varchar[]) cannot be cast to type "text"