triger and transaction

Started by SunWuKungalmost 20 years ago2 messagesgeneral
Jump to latest
#1SunWuKung
Balazs.Klein@t-online.hu

If a transaction inserts rows to two tables will a procedure invoked by
an "after insert on each row" trigger on one table see all the records
inserted in the other table?

In other words - will the transaction run completely before the trigger
is fired?

Thanks for the help.
Balázs

#2Martijn van Oosterhout
kleptog@svana.org
In reply to: SunWuKung (#1)
Re: triger and transaction

On Thu, Apr 27, 2006 at 01:34:06AM -0700, SunWuKung wrote:

If a transaction inserts rows to two tables will a procedure invoked by
an "after insert on each row" trigger on one table see all the records
inserted in the other table?

That's the idea.

In other words - will the transaction run completely before the trigger
is fired?

Well, it's the same transaction, but it's after the insert.

Have a nice day,
--
Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/

Show quoted text

From each according to his ability. To each according to his ability to litigate.