Data audit trail techniques in postgresql - Mailing list pgsql-sql

From Nathaniel Smith
Subject Data audit trail techniques in postgresql
Date
Msg-id 20090827122831.7a780cdb@gibson.summersault.com
Whole thread Raw
Responses Re: [GENERAL] Data audit trail techniques in postgresql  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-sql
Howdy,

(cross-posted to the pg.sql and pg.general lists)

I'm looking to set up an audit trail system--ie, logging every
INSERT/UPDATE/DELETE on a given table and tracking how the data
changes over time. I know I could do it by hand using triggers, but was
hoping to save a little time using something prepackaged.

I installed and tested the two-year untouched
http://pgfoundry.org/projects/audittrail2/ --the only auditing tool on
pgFoundry with a release--and found that, while it works well, it's
still marked as beta and has an obvious bug in it when used in 8.3.7.

What do others use to accomplish this? Do most pg users just write
triggers by hand? Or is there some nice auditing module that Google
just isn't revealing to me?

Thanks.

Nathaniel Smith
Web Application Developer
Summersault, LLC.
710 E. Main St., Suite 200
Richmond, IN 47374
www.summersault.com

pgsql-sql by date:

Previous
From: Rob Sargent
Date:
Subject: Re: resolved: WITH RECURSIVE: ARRAY[id] All column datatypes must be hashable
Next
From: Alvaro Herrera
Date:
Subject: Re: [GENERAL] Data audit trail techniques in postgresql