Re: A generic trigger to log chanes on database tables

From: Jim Nasby <decibel(at)decibel(dot)org>
To: Charles Ambrose <jamjam360(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: A generic trigger to log chanes on database tables
Date: 2006-11-27 23:16:09
Message-ID: AB3E24CD-0A2D-44D9-8169-07E4EF8A39B7@decibel.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)nasby(dot)net
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jim Nasby 2006-11-27 23:19:02 Re: Why overlaps is not working
Previous Message Jim Nasby 2006-11-27 23:14:11 Re: Postgres Team: Thank You All