Trigger not invoked on update from trigger

From: Erik Ronström <kvarken(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Trigger not invoked on update from trigger
Date: 2003-07-29 00:22:18
Message-ID: 20030729002218.14290.qmail@web13805.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello folks,

I have a table (table 1) with a trigger (trigger 1) which is invoked
after INSERT, UPDATE or DELETE. Then I have another table (table 2),
with a trigger (trigger 2) that updates the table 1 ON UPDATE.

The problem is that trigger 1 is never invoked when trigger 2 updates
table 1. This leads to an error later in trigger 2, since the database
is in a bad state. I can check, trough SELECTs in trigger 2, that table
1 *is* actually updated, but still, the trigger is never called.

The only cause I can think of is that AFTER UPDATE means "at the end of
the transaction". Is that a correct assumption? Is there anything to do
about it?

Regards
Erik

________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://uk.messenger.yahoo.com/

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-07-29 01:50:02 Re: translate referential integrity violation
Previous Message Ned Lilly 2003-07-29 00:21:21 BerkeleyDB ships with Python/Zope