before/after triggers

From: Dennis Gearon <gearond(at)cvc(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: before/after triggers
Date: 2003-03-26 22:30:26
Message-ID: 3E822A02.70105@cvc.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

If I have a before trigger on table 'A' modify table 'B' and an after trigger
on table 'A' fails for that transaction:

1/ Is the change to table 'B' visible to anybody except that tranaction at any time?

2/ Does the change to table 'B' disappear/never show up when the after trigger
fails?

3/ Would all after triggers in that transaction see the change to table 'B'
before the one particular after trigger fails?

4/ do all the major DB's have this functionality? I.E.

Oracle
Sybase
MSSQL (yuck)
DB2
<other examples welcome>

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chris Hutchinson 2003-03-26 22:34:32 Re: transaction blocking inserts in postgresql 7.3
Previous Message Gary Hendricks 2003-03-26 22:30:07 Any recommendations for books on PostgreSQL?