Re: Differential Backups - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Differential Backups
Date
Msg-id Pine.LNX.4.33L2.0110292302210.15563-100000@aguila.protecne.cl
Whole thread Raw
In response to Re: Differential Backups  (Doug McNaught <doug@wireboard.com>)
Responses Re: Differential Backups  (Paul Tomblin <ptomblin@xcski.com>)
List pgsql-general
On 29 Oct 2001, Doug McNaught wrote:

> "Ian Harding" <ianh@tpchd.org> writes:
>
> > I have been thinking about backups.  I currently do one a day.
> > However, I thought it might be nice to get differential backups
> > through the day.

> Interesting idea.  The one thing I might worry about is that 'diff'
> might (I'm not familiar with its algorithm) eat a great deal of memory
> if the dumps you're comparing are very large and significantly
> different.

GNU diff reads in memory both files. You sure need lots to compare
medium sized databases, and I don't think this method will work on big
ones.

I think this has to be implemented inside the database; maybe there's a
way of extracting the data from WAL logs (committed transactions?). Then
you need to go to the tables and see what each transaction did...

Another way to do it could be to store a timestamp on each tuple, and
check that for the diff backup. Sounds like you're going to enlarge your
data a lot by just having the timestamps...

--
Alvaro Herrera (<alvherre[@]atentus.com>)
"Coge la flor que hoy nace alegre, ufana. Quién sabe si nacera otra man~ana?"


pgsql-general by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: UNICODE
Next
From: Tod McQuillin
Date:
Subject: Re: Differential Backups