From: Tom Lane <tgl@sss.pgh.pa.us>
To: Josi Perez (3T Systems) <josiperez3t@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: trigger AFTER INSERT
Date: Thu, 12 Aug 2010 11:00:26 -0400
Message-ID: <14276.1281625226@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTinpHpBZQ09BHXhsUoJCwsw4up=yC=n=zJshavnm@mail.gmail.com>
References: <AANLkTinpHpBZQ09BHXhsUoJCwsw4up=yC=n=zJshavnm@mail.gmail.com>
"Josi Perez (3T Systems)" <josiperez3t@gmail.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, josiperez3t@gmail.com
Subject: Re: trigger AFTER INSERT
In-Reply-To: <14276.1281625226@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox