Re: Trigger function is not called

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bill <pg(at)dbginc(dot)com>
Cc: PgSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Trigger function is not called
Date: 2008-08-26 03:04:03
Message-ID: 17816.1219719843@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bill <pg(at)dbginc(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Klint Gore 2008-08-26 03:24:34 Re: Trigger function is not called
Previous Message Bill 2008-08-26 02:53:53 Re: Trigger function is not called