"Josi Perez (3T Systems)" <josiperez3t(at)gmail(dot)com> writes:
> 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.
Sure, because the whole transaction is rolled back on error.
regards, tom lane