Re: archiving or versioning data? - Mailing list pgsql-sql

From A. Kretschmer
Subject Re: archiving or versioning data?
Date
Msg-id 20081217071256.GC31285@a-kretschmer.de
Whole thread Raw
In response to archiving or versioning data?  (Louis-David Mitterrand <vindex+lists-pgsql-sql@apartia.org>)
List pgsql-sql
In response to Louis-David Mitterrand :
> Hi,
> 
> I'd like to find a way to archive versions of my data in an elegant and
> extensible way.
> 
> When a user modifies certain entries I'd like the database to keep the
> previous versions (or a limited, definable number of versions).
> Wiki-style.
> 
> Would that be a good use of postgres' arrays? 
> 
> So I'm looking for "best practices" (tm) on that subject.
> 
> Thanks in advance for your suggestions,

You can use tablelog:

08:11 < akretschmer> ??tablelog
08:11 < pg_docbot_adz> For information about 'tablelog' see:
08:11 < pg_docbot_adz>
http://andreas.scherbaum.la/blog/archives/100-Log-Table-Changes-in-PostgreSQL-with-tablelog.html
08:11 < pg_docbot_adz> http://pgfoundry.org/projects/tablelog/


It logs all modifications for a particular table.


Andreas
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net


pgsql-sql by date:

Previous
From: Louis-David Mitterrand
Date:
Subject: archiving or versioning data?
Next
From: "Jaime Casanova"
Date:
Subject: Re: How can this be legal syntax