From: GRIMOIS Eric <eric.grimois@cpam-cergypontoise.cnamts.fr>
To: pgsql-sql@postgresql.org
Subject: General trigger function
Date: Wed, 12 Jun 2002 09:48:55 +0200
Message-ID: <003401c211e5$9a5f1220$3d04a837@PXXXX> (raw)
Hi all
I read in the doc than a same function can be used for several triggers.
I tried to create a function who updates a field with a timestamp and
another field with the user name. This function is fired by triggers in
several tables.
It only works if updated fields have same names in all tables. I failed to
create a function where fields names are parameters of the function.
What's the way to do that ?
Thanks.
Eric GRIMOIS
Analyste programmeur
SEI - CPAM du Val d'Oise
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: eric.grimois@cpam-cergypontoise.cnamts.fr
Subject: Re: General trigger function
In-Reply-To: <003401c211e5$9a5f1220$3d04a837@PXXXX>
* 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