timestamp in trigger - Mailing list pgsql-bugs

From Laurent Belmonte
Subject timestamp in trigger
Date
Msg-id 1020098369.18701.13.camel@boa
Whole thread Raw
List pgsql-bugs
In a ON UPDATE trigger on Toto table , i insert in a log a timestamp
like this


CREATE TABLE LogProtocole (
   logprotocole_id SERIAL,
   logprotocole_message text,
   logprotocole_date timestamp,
  CONSTRAINT pk_logprotocole PRIMARY KEY (logprotocole_id)

);


insert into logprotocole (
    logprotocole_message,logprotocole_date) select 'toto','now';

when i use it x time , the logprotocole_date take value from an old one.

( there is lot of triggers on Toto table : on insert,on delete,before
update ,after update )

pgsql-bugs by date:

Previous
From: pgsql-bugs@postgresql.org
Date:
Subject: Bug #650: LIKE command
Next
From: Bob Kenny
Date:
Subject: LIKE Command