Versioning

From: Sean Davis <sdavis2(at)mail(dot)nih(dot)gov>
To: pgsql-general(at)postgresql(dot)org
Subject: Versioning
Date: 2007-04-10 19:18:07
Message-ID: 200704101518.07787.sdavis2@mail.nih.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I can think of several ways of "versioning" objects (modeled as rows of a
table).

1) parent-child based model, where each edit of a row results in a child row
2) date-based model, where each row is stored with a date and no updates are
performed, only inserts
3) Maintain a shadow table with "old" versions of a row
4) Maintain a shadow table with only diffs from the original and metadata on
when the changes took place
5) Other?

Has anyone suggestions on what might work "best"? The "rows" here are going
to be simple text fields with a little metadata.

Thanks,
Sean

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Reece Hart 2007-04-10 19:24:17 storing checksums in a database
Previous Message William Garrison 2007-04-10 18:45:06 Do I need serializable for this query?