Re: database/table snapshot - Mailing list pgsql-general

From Jasen Betts
Subject Re: database/table snapshot
Date
Msg-id gm1f6s$9c0$2@reversiblemaps.ath.cx
Whole thread Raw
In response to database/table snapshot  (Grzegorz Jaśkiewicz <gryzman@gmail.com>)
List pgsql-general
On 2009-01-30, Grzegorz Jaśkiewicz <gryzman@gmail.com> wrote:
> Hey folks,
>
> I wonder, how would you guys approach table snapshots.
> So the thing is, I have table X (I have few more tables, but lets
> simplify that). That table is being replicated to X' on other server.
> Now I need an ability to see changes, say every interval T. So, the
> simplest solution would be to insert all that data to table Xs, with
> additional time column,
> but that obviously will take vast amounts of space. Is there any
> existing algorithm for doing that, or perhaps there's something in
> postgres that would allow me to do it - but I don't know about ?
> thx.

use a trigger to log all updates, inserts, and deletes, to a log table

write a function that returns the contents of the table at a given time.

pgsql-general by date:

Previous
From: Jasen Betts
Date:
Subject: Re: Call volume query
Next
From: Roger Leigh
Date:
Subject: Re: Pet Peeves?