From: Mike Finn <mike.finn@tacticalExecutive.com>
To: pgsql-sql@postgresql.org
Subject: Calling a trigger from a trigger
Date: Mon, 11 Mar 2002 11:19:00 -0700
Message-ID: <a6isdp$16j7$1@jupiter.hub.org> (raw)
I have a number of tables that have a group of fields in common.
I want to process theses fields in a before trigger (before insert or
update), but each of the tables have before triggers for processing of
other non-common data fields.
It seems that from a pl/pgsql trigger I cannot call another trigger (the
one that would be common to all) and if I just attach the common trigger as
a second trigger to each table then (according to the docs) there is no
guarantee of the execution order (which I need ... each table requires the
common stuff to be processed before the non-common stuff).
Is there a way to achieve this requirement without duplicating the code
from the common-part in each of table triggers?
Thanks, in advance, for any thoughts
Mike.
=========================================
Mike Finn
mike.finn@tacticalExecutive.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mike.finn@tacticalExecutive.com
Subject: Re: Calling a trigger from a trigger
In-Reply-To: <a6isdp$16j7$1@jupiter.hub.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox