Re: tsvector_update_trigger throws error "column is not of tsvector type"

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: tsvector_update_trigger throws error "column is not of tsvector type"
Дата
Msg-id 13959.1207622842@sss.pgh.pa.us
обсуждение исходный текст
Ответ на tsvector_update_trigger throws error "column is not of tsvector type"  ("Markus Wollny" <Markus.Wollny@computec.de>)
Ответы Re: tsvector_update_trigger throws error "column is not of tsvector type"
Список pgsql-general
"Markus Wollny" <Markus.Wollny@computec.de> writes:
> Now when I do anything that fires the trigger like
> UPDATE ct_com_board_message set count_reply = 1 where message_id = 12345;
> I get an error
> ERROR:  column "idxfti" is not of tsvector type

This is leaping to conclusions, but what I suspect is that you've got
two types "tsvector" in your database and the column is the wrong one.
This situation is not too hard to get into if you try to restore a dump
from an old database that used contrib/tsearch2 --- the dump may create
a partially broken type "public.tsvector" while the built-in
pg_catalog.tsvector still remains.

There's some hints in the manual about safe migration from tsearch2
to built-in tsearch:
http://www.postgresql.org/docs/8.3/static/textsearch-migration.html

The whole thing is a bit of a mess :-(, and has certainly helped make
it clear that we need to invent some better-defined module concept to
help with major upgrades/replacements of add-on modules.

            regards, tom lane

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

Предыдущее
От: "Stephen Denne"
Дата:
Сообщение: Re: select distinct and index usage
Следующее
От: Manuel Sugawara
Дата:
Сообщение: Re: Cannot use a standalone backend to VACUUM in "postgres""