Re: Multiple triggers/rules

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: brichard(at)cafod(dot)org(dot)uk (Bruce Richardson)
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Multiple triggers/rules
Date: 2001-02-21 15:17:25
Message-ID: 10216.982768645@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

brichard(at)cafod(dot)org(dot)uk (Bruce Richardson) writes:
> How would I check the order triggers will be run in, where a
> column/table has multiple triggers on it? Is there a way to change that
> order?

It's essentially random, and you can't control or change it. If you
have interdependent actions in different triggers, you'll probably have
to combine those triggers so that you can know the ordering of the
actions. If the triggers are independent, though, there's no reason
to care what order they fire in.

> And while I'm at it, can you define more than one rule for the same
> event on the one table?

Yes, with the same ordering issues as for triggers.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gregory Wood 2001-02-21 15:26:08 Deferred NOT NULL?
Previous Message Colleen Williams 2001-02-21 13:09:30 vacuum and backup