Re: Triggers after insert

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Fran Fabrizio <ffabrizio(at)mmrd(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Triggers after insert
Date: 2001-10-25 20:17:18
Message-ID: 16870.1004041038@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Fran Fabrizio <ffabrizio(at)mmrd(dot)com> writes:
> I seem to be observing that on a trigger I've created to fire
> AFTER INSERT, if I intentionally introduce some sort of syntax error to
> the trigger for example, and insert a row, the row does not appear in
> the table, even though I've declared it to fire after insert. Shouldn't
> that row be there regardless of whether the trigger does or does not
> fire successfully?

No. Failure of an AFTER trigger will still abort the transaction.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message P. Dwayne Miller 2001-10-25 20:19:55 DBD::Pg
Previous Message Sam Cao 2001-10-25 18:57:36 Solaris 2.6