Re: "Resurrected" data files - problem?

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Peter Childs" <peterachilds(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org, "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
Subject: Re: "Resurrected" data files - problem?
Date: 2007-11-08 16:24:31
Message-ID: dcc563d10711080824if3fe8a2qfa30e44eeda53a4b@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Nov 8, 2007 9:39 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> "Peter Childs" <peterachilds(at)gmail(dot)com> writes:
> > On 08/11/2007, Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at> wrote:
> >> So if we perform our database backups with incremental
> >> backups as described above, we could end up with additional
> >> files after the restore, because PostgreSQL files can get
> >> deleted (e.g. during DROP TABLE or TRUNCATE TABLE).
> >>
> >> Could such "resurrected" files (data files, files in
> >> pg_xlog, pg_clog or elsewhere) cause a problem for the database
> >> (other than the obvious one that there may be unnecessary files
> >> about that consume disk space)?
>
> > This will not work at all.
>
> To be more specific: the resurrected files aren't the problem;
> offhand I see no reason they'd create any issue beyond wasted
> disk space. The problem is version skew between files that were
> backed up at slightly different times, leading to inconsistency.
>
> You could make this work if you shut down Postgres whenever you
> are taking a backup, but as a means for backing up a live database
> it indeed won't work at all.

I think if you had real snapshotting file systems you could use the
snapshots to create your backups. But this seems like a lot of work
to avoid implementing PITR to me.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Kevin Neufeld 2007-11-08 16:29:26 Re: System V IPC on Windows
Previous Message Reg Me Please 2007-11-08 16:17:43 Re: what is the date format in binary query results