Re: A generic trigger to log chanes on database tables - Mailing list pgsql-general

From Jim Nasby
Subject Re: A generic trigger to log chanes on database tables
Date
Msg-id AB3E24CD-0A2D-44D9-8169-07E4EF8A39B7@decibel.org
Whole thread Raw
In response to A generic trigger to log chanes on database tables  ("Charles Ambrose" <jamjam360@gmail.com>)
List pgsql-general
On Nov 23, 2006, at 10:32 AM, Charles Ambrose wrote:
> 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.

If you want a table-generic method, look at how Slony does it. You
probably won't want to use exactly that code, but it should get you
close.
--
Jim Nasby                                            jim@nasby.net
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)



pgsql-general by date:

Previous
From: Jim Nasby
Date:
Subject: Re: Connecting via ssh tunnel
Next
From: Jim Nasby
Date:
Subject: Re: SSL error: decryption failed or bad record mac