| From: | Erik Thiele <erik(at)thiele-hydraulik(dot)de> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: triggers on commit |
| Date: | 2004-03-19 15:27:58 |
| Message-ID: | 20040319162758.0eae6612.erik@thiele-hydraulik.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
On Fri, 19 Mar 2004 10:13:56 -0500
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Erik Thiele <erik(at)thiele-hydraulik(dot)de> writes:
> > now. what i wanted to do is ensure that this is done correctly and
> > otherwise abort the transaction.
> > of course this check needs to be done at the commit time, because if
> > i do it on statement level, it cannot work, since i cannot change
> > two tables at the same time.
>
> I believe "deferred AFTER" triggers are fired just before commit.
i don't find this in the documentation. i only know triggers which run
before insert/update/delete or directly (!) after, not waiting until
commit.
cya & thx!
erik
--
Erik Thiele
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Hans de Bruin | 2004-03-21 16:25:31 | Re: Import from Ms Excel |
| Previous Message | Robert Creager | 2004-03-19 15:26:25 | CREATE TABLE LIKE question |