tsearch consistency trigger on inheritated table

From: "Bjoern Metzdorf" <bm(at)turtle-entertainment(dot)de>
To: <pgsql-general(at)postgresql(dot)org>
Subject: tsearch consistency trigger on inheritated table
Date: 2002-11-12 23:11:41
Message-ID: 013e01c28aa0$e1b178a0$0564a8c0@toolteam.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

The trigger from README:

create trigger txtidxupdate before update or insert on titles
for each row execute procedure tsearch(titleidx, title);

When using this trigger on an inheritated table (with "title" being an
inheritated column), an insert or update on the table fails stating:

NOTICE: TSearch: can not find field 'title'
ERROR: ExecAppend: Fail to add null value in not null attribute created

Is this possible or did I mess everything completely up?

Btw, using txt2txtidx on all rows and selecting with ## and @@ works fine,
it is just the trigger.

Regards,
Bjoern

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-11-12 23:37:04 Re: tsearch consistency trigger on inheritated table
Previous Message Tommi Mäkitalo 2002-11-12 22:23:18 Re: C++: get value for integral types?