Re: A generic trigger to log chanes on database tables

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: A generic trigger to log chanes on database tables
Date: 2006-11-23 16:52:09
Message-ID: 20061123165209.GA24093@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

am Fri, dem 24.11.2006, um 0:32:30 +0800 mailte Charles Ambrose folgendes:
> Hi!
>
> Is there a way that I could create a trigger that logs the changes (updates,
> deletes) of a table? I mean, I want to put in a table the changes to any table
> in a database and also put in the table the column that was modified and the
> corresponding value.

Not a generic way, you must create a audit-table for every desired
table, but it works:

http://pgfoundry.org/projects/tablelog/

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47215, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Broersma Jr 2006-11-23 16:57:23 Re: Why overlaps is not working
Previous Message Terry Fielder 2006-11-23 16:50:58 Re: COPY FROM : out of memory