Re: trigger AFTER INSERT

From: "Josi Perez (3T Systems)" <josiperez3t(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: trigger AFTER INSERT
Date: 2010-08-16 16:06:29
Message-ID: AANLkTimHqdW07smfqh4QG+6DEOBToqd_kFADPwNgq+0R@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Thank you for your answer.
Without considering the errors, the transaction should not start after the
AFTER INSERT?
Josi Perez

2010/8/12 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>

> "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
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Grittner 2010-08-16 16:39:27 Re: trigger AFTER INSERT
Previous Message Tom Lane 2010-08-16 15:59:14 Re: TopMemoryContext - Configuration Mistake?