From: wieck@debis.com
To: brook@trillium.NMSU.Edu
Cc: mo@local2me.com
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] example of trigger to track DB changes
Date: Wed, 16 Jun 1999 12:55:37 +0200 (MET DST)
Message-ID: <m10uDM1-0003kkC@orion.SAPserv.Hamburg.dsh.de> (raw)
In-Reply-To: <199906151911.NAA28058@trillium.nmsu.edu>
>
> 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.
But all those examples are based on v6.4. In fact the rule
system of v6.3.2 cannot handle them because it's broken!
Please upgrade to v6.5 (just released) before playing with
the rule system.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#========================================= wieck@debis.com (Jan Wieck) #
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: wieck@debis.com, brook@trillium.NMSU.Edu, mo@local2me.com
Subject: Re: [SQL] example of trigger to track DB changes
In-Reply-To: <m10uDM1-0003kkC@orion.SAPserv.Hamburg.dsh.de>
References: <199906151911.NAA28058@trillium.nmsu.edu> <m10uDM1-0003kkC@orion.SAPserv.Hamburg.dsh.de>
* 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