Re: Triggers do not fire - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: Triggers do not fire
Date
Msg-id Pine.BSF.4.21.0110161301270.17549-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Triggers do not fire  (Reiner Dassing <dassing@wettzell.ifag.de>)
List pgsql-sql
> The result is as follows:
> INSERT INTO test VALUES(1,'2000-10-11 12:00:00',-20.2);
> NOTICE:  Fired INSERT
> INSERT 0 0
> UPDATE test SET value = 1000.0 WHERE epoch = '2000-10-11 12:10:00'  AND
> sensor_id = 1;
> UPDATE 0
> 
> The insert notice can be shown!
> The update notice is not there!
> 
> Why?

My guess...
Because there are no rows the update matches?  By returning NULL, you
are aborting the insert (see INSERT 0 0) and thus there are no rows for
the update to do so no triggers are run.



pgsql-sql by date:

Previous
From: "Frank Zhu"
Date:
Subject: Text/Image, JSP tomcat. How can I operate the text and image type field in Postgresql? only in java/jsp
Next
From: Stephan Szabo
Date:
Subject: Re: index problem