From: Tom Lane <tgl@sss.pgh.pa.us>
To: fmiddleton@verizon.net
Cc: pgsql-sql@postgresql.org
Subject: Re: UPDATE Trigger on multiple tables
Date: Thu, 13 Oct 2005 00:39:10 -0400
Message-ID: <17673.1129178350@sss.pgh.pa.us> (raw)
In-Reply-To: <434DE296.8060203@verizon.net>
References: <434DE296.8060203@verizon.net>
Ferindo Middleton Jr <fmiddleton@verizon.net> writes:
> Is it possible to have a single trigger on multiple tables
> simultaneously? Example:
> CREATE TRIGGER emp_cust_stamp BEFORE INSERT OR UPDATE ON employees, customers
> FOR EACH ROW EXECUTE PROCEDURE last_updated_stamp();
No. You can use the same function for multiple triggers, but you have
to CREATE TRIGGER for each table separately.
regards, tom lane
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: tgl@sss.pgh.pa.us, fmiddleton@verizon.net
Subject: Re: UPDATE Trigger on multiple tables
In-Reply-To: <17673.1129178350@sss.pgh.pa.us>
* 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