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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Markus Wollny" <Markus(dot)Wollny(at)computec(dot)de>, pgsql-general(at)postgresql(dot)org
Subject: Re: tsvector_update_trigger throws error "column is not of tsvector type"
Date: 2008-04-08 17:57:21
Message-ID: 3783.1207677441@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I wrote:
> 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)?

Actually, I'll bet a nickel that you'll find it doesn't, but rather
returns the OID of the domain over tsvector that the new
contrib/tsearch2 module creates. It's clearly a bug that the built-in
trigger doesn't allow the domain alias to be used --- will fix.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Shane Ambler 2008-04-08 18:24:17 Re: High Availability / Replication with Sequoia
Previous Message Mikko Partio 2008-04-08 17:49:47 Re: "too many trigger records found for relation xyz"