| From: | Jasen Betts <jasen(at)xnet(dot)co(dot)nz> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: database/table snapshot |
| Date: | 2009-01-31 12:12:12 |
| Message-ID: | gm1f6s$9c0$2@reversiblemaps.ath.cx |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 2009-01-30, Grzegorz Jaśkiewicz <gryzman(at)gmail(dot)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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Roger Leigh | 2009-01-31 12:38:18 | Re: Pet Peeves? |
| Previous Message | Jasen Betts | 2009-01-31 12:03:30 | Re: Call volume query |