From: Michael Olivier <mo@local2me.com>
To: pgsql-sql@postgreSQL.org <pgsql-sql@postgreSQL.org>
Subject: example of trigger to track DB changes
Date: Tue, 15 Jun 1999 05:23:45 +0000
Message-ID: <3765E361.3570C6EA@local2me.com> (raw)
I've looked through the trigger examples in the html doc and the src
tree but didn't find the one I was looking for.
I want to set up a trigger to track changes (add/update/delete) to rows
in two tables. This can be through inserting OID's or acctname's
(acctname of web users) into a "changed_rows" table that keeps track of
changed rows.
Would someone provide some source code that does this? I'm assuming a
lot of people have done this... I'm using 6.3.2 ...
thanks!
Michael
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: mo@local2me.com
Subject: Re: example of trigger to track DB changes
In-Reply-To: <3765E361.3570C6EA@local2me.com>
References: <3765E361.3570C6EA@local2me.com>
* 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