From: Brook Milligan <brook@trillium.NMSU.Edu>
To: mo@local2me.com
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] example of trigger to track DB changes
Date: Tue, 15 Jun 1999 13:11:52 -0600 (MDT)
Message-ID: <199906151911.NAA28058@trillium.nmsu.edu> (raw)
In-Reply-To: <3765E361.3570C6EA@local2me.com>
References: <3765E361.3570C6EA@local2me.com>
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.
Look in the rules docs instead.
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 ...
The rules docs describe how to do exactly this and give an example.
Cheers,
Brook
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: brook@trillium.NMSU.Edu, mo@local2me.com
Subject: Re: [SQL] example of trigger to track DB changes
In-Reply-To: <199906151911.NAA28058@trillium.nmsu.edu>
References: <3765E361.3570C6EA@local2me.com> <199906151911.NAA28058@trillium.nmsu.edu>
* 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