Skip site navigation (1) Skip section navigation (2)

Re: [SQL] example of trigger to track DB changes

From: wieck(at)debis(dot)com (Jan Wieck)
To: brook(at)trillium(dot)NMSU(dot)Edu (Brook Milligan)
Cc: mo(at)local2me(dot)com, pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] example of trigger to track DB changes
Date: 1999-06-16 10:55:37
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-sql
>    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.



# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#========================================= wieck(at)debis(dot)com (Jan Wieck) #

In response to

pgsql-sql by date

Next:From: Michal KlacanDate: 1999-06-16 11:13:18
Subject: database select support
Previous:From: Jan WieckDate: 1999-06-16 10:50:43
Subject: Re: [SQL] Function security?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group