Implementing a change log

Поиск
Список
Период
Сортировка
От Michael Schuerig
Тема Implementing a change log
Дата
Msg-id 200509190040.41670.michael@schuerig.de
обсуждение исходный текст
Ответы Re: Implementing a change log  (Mike Rylander <mrylander@gmail.com>)
Re: Implementing a change log  ("Greg Sabino Mullane" <greg@turnstep.com>)
Список 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 по дате отправления:

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Query Cost
Следующее
От: Mike Rylander
Дата:
Сообщение: Re: Implementing a change log