Re: [repost] trigger update time

Поиск
Список
Период
Сортировка
От Rory Campbell-Lange
Тема Re: [repost] trigger update time
Дата
Msg-id 20020619140059.GA8438@campbell-lange.net
обсуждение исходный текст
Ответ на Re: [repost] trigger update time  (Manfred Koizar <mkoi-pg@aon.at>)
Ответы Re: [repost] trigger update time
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [repost] trigger update time
Следующее
От: "Jillian Carroll"
Дата:
Сообщение: ODBC Error