Re: [repost] trigger update time - Mailing list pgsql-novice

From Rory Campbell-Lange
Subject Re: [repost] trigger update time
Date
Msg-id 20020619140059.GA8438@campbell-lange.net
Whole thread Raw
In response to Re: [repost] trigger update time  (Manfred Koizar <mkoi-pg@aon.at>)
Responses Re: [repost] trigger update time
List pgsql-novice
On 19/06/02, Manfred Koizar (mkoi-pg@aon.at) wrote:
> On Wed, 19 Jun 2002 09:36:34 +0100, Rory Campbell-Lange
> <rory@campbell-lange.net> wrote:
> >I am trying to update a timestamp value in a related table using
> >functions and triggers, but failing miserably!
>
> timestamp is not the problem.
>
> >CREATE FUNCTION "fnTU" () RETURNS opaque AS 'BEGIN
> >UPDATE a SET tstamp = new.tstamp;
> >WHERE new.a_id = id;
> >RETURN new;
> >END' LANGUAGE 'plpgsql';
>     ^
>     Insert ; here!

Apologies and Thanks!, Manfred.

However I now get the following error:
obf=# insert into messages (id_person, id_idea, content) values
obf-# (5, 7, 'but all this txting is irritating!');
ERROR:  fmgr_info: function 51144: cache lookup failed

Is this an indexing problem?

--
Rory Campbell-Lange
<rory@campbell-lange.net>
<www.campbell-lange.net>

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: [repost] trigger update time
Next
From: "Jillian Carroll"
Date:
Subject: ODBC Error