Re: Data version idea (please discuss)

From: Richard Huxton <dev(at)archonet(dot)com>
To: webb <wwsprague(at)ucdavis(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Data version idea (please discuss)
Date: 2004-08-06 07:20:58
Message-ID: 4113315A.7050601@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

webb wrote:
> What I am curious about is versioning the data that goes into this
> database using something that I want to call a "checkpoint". The
> "use-case" would be that you do an insert of something like 100 records,
> updating secondary tables as necessary, check it to the best of your
> ability, then run Function_1. This function increments the version
> number and returns it, storing whatever is necessary so that Function_2
> can reset the database to any of the version numbers returned by
> Function_1. I guess there would be a Function_3 that would add tables
> to the checkpointing system.
>
> Questions:
>
> 0. Does that make sense?

Yes

> 1. Is there some literature on this, so I don't have to keep bothering
> the list with beginners questions?

Temporal databases - replace mentions of timestamps with version-numbers
and it matches your requirements precisely. There's various stuff on the
web, plenty of academic research and a couple of books too.

HTH
--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2004-08-06 07:23:23 Re: Postgres and Tools Intro?
Previous Message Pierre-Frédéric Caillaud 2004-08-06 07:17:36 Re: Commit Transaction Command