Implementing a change log - Mailing list pgsql-general

From Michael Schuerig
Subject Implementing a change log
Date
Msg-id 200509190040.41670.michael@schuerig.de
Whole thread Raw
Responses Re: Implementing a change log
Re: Implementing a change log
List pgsql-general
In my current project I have a customer requirement for implementing a
change log. This is not just for auditing purposes, rather it is meant
to be accessible by users so they can get an overview of the change
history of an object. The entire data set is not big, I'm expecting
considerably less than 50.000 records. Changes are only made by about
30 human users.

Queries related to change history are (a) for all changes during a
specific time interval and (b) for all changes to a particular record.

My original intention was to keep two sets of tables. The first
containing only the working set of current records. The second
containing all prior versions. I haven't experimented with such a setup
yet and I'm wondering if it is even necessary. The alternative being to
keep only a single set of tables.

Can anyone relate their experiences with such a thing? Which approaches
should I take into consideration?

Michael

--
Michael Schuerig                       Face reality and stare it down
mailto:michael@schuerig.de        --Jethro Tull, Silver River Turning
http://www.schuerig.de/michael/

pgsql-general by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: Query Cost
Next
From: Mike Rylander
Date:
Subject: Re: Implementing a change log