From: | Simon Riggs <simon(at)2ndquadrant(dot)com> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Point in Time Recovery |
Date: | 2004-07-13 22:52:34 |
Message-ID: | 1089759153.17493.3270.camel@stromboli |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-hackers pgsql-patches |
On Tue, 2004-07-13 at 23:42, Bruce Momjian wrote:
> Simon Riggs wrote:
> > On Tue, 2004-07-13 at 22:19, Tom Lane wrote:
> >
> > > To have a consistent recovery at all, you must replay the log starting
> > > from a checkpoint before the backup began and extending to the time that
> > > the backup finished. You only get to decide where to stop after that
> > > point.
> > >
> >
> > So the situation is:
> > - You must only stop recovery at a point in time (in the logs) after the
> > backup had completed.
> >
> > No way to enforce that currently, apart from procedurally. Not exactly
> > frequent, so I think I just document that and move on, eh?
>
> If it happens, could you use your previous full backup and the PITR logs
> from before stop stopped logging, and then after?
Yes.
> Is there a period
> where they could not restore reliably?
Good question. No is the answer.
The situation is that the backup isn't timestamped with respect to the
logs, so its possible to attempt to use the wrong backup for recovery.
The solution is procedural - make sure you timestamp your backup files,
so you know which ones to recover with...
Best Regards, Simon Riggs
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-07-13 22:56:31 | Re: Point in Time Recovery |
Previous Message | Bruce Momjian | 2004-07-13 22:42:42 | Re: Point in Time Recovery |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-07-13 22:53:56 | Re: Release planning (was: Re: Status report) |
Previous Message | Bruce Momjian | 2004-07-13 22:47:45 | Re: Release planning (was: Re: Status report) |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2004-07-13 22:56:08 | Re: serverlog rotation/functions |
Previous Message | Simon Riggs | 2004-07-13 22:47:35 | Re: PITR Archive Recovery plus WIP PITR |