Re: tsvector_update_trigger throws error "column is not of tsvector type" - Mailing list pgsql-general

From Tom Lane
Subject Re: tsvector_update_trigger throws error "column is not of tsvector type"
Date
Msg-id 2949.1207673963@sss.pgh.pa.us
Whole thread Raw
In response to Re: tsvector_update_trigger throws error "column is not of tsvector type"  ("Markus Wollny" <Markus.Wollny@computec.de>)
Responses Re: tsvector_update_trigger throws error "column is not of tsvector type"  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
"Markus Wollny" <Markus.Wollny@computec.de> writes:
> So everything's working as expected apart from that built-in trigger function.

Well, that's just strange.  I tried to duplicate your example without
any success (ie, it worked fine) --- although it seemed you hadn't
shown the trigger definition exactly.  I got a syntax error because
'pg_catalog.german' wasn't quoted, and after that an error about
column user_login not existing.  But I assume these are just typos
in your message.

Would you confirm that

select atttypid from pg_attribute where attrelid = 'public.ct_com_board_message'::regclass and attname = 'idxfti';

gives 3614 (the preassigned OID for pg_catalog.tsvector)?

            regards, tom lane

pgsql-general by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: Problem after VACUUM ANALYZE
Next
From: Keaton Adams
Date:
Subject: Persistent objects within PG or the availability of non-logged tables or databases?