Without considering the errors, the transaction should not start after the AFTER INSERT?
Josi Perez
2010/8/12 Tom Lane <tgl@xxxxxxxxxxxxx>
"Josi Perez (3T Systems)" <josiperez3t@xxxxxxxxx> writes:Sure, because the whole transaction is rolled back on error.
> If I write a trigger AFTER INSERT and I have one error in this trigger, the
> record (that I think was already inserted) is not inserted.
regards, tom lane