Re: Trigger function is not called - Mailing list pgsql-general

From Tom Lane
Subject Re: Trigger function is not called
Date
Msg-id 17816.1219719843@sss.pgh.pa.us
Whole thread Raw
In response to Re: Trigger function is not called  (Bill <pg@dbginc.com>)
Responses Re: Trigger function is not called
List pgsql-general
Bill <pg@dbginc.com> writes:
> The thing that has me confused is that the following table, trigger and
> trigger function work perfectly and the primary key for this table is
> also bigint not null.

Actually, after looking closer, I think the problem with your previous
example is that you created an ON UPDATE trigger not an ON INSERT
trigger.  Table constraints are indeed enforced after before-triggers
fire, as a quick look at the code proves.  Sorry for the misinformation.

            regards, tom lane

pgsql-general by date:

Previous
From: Bill
Date:
Subject: Re: Trigger function is not called
Next
From: Tom Lane
Date:
Subject: Re: Trigger function is not called