Re: Point in Time Recovery

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
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:42:42
Message-ID: 200407132242.i6DMgg612564@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers pgsql-patches

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? Is there a period
where they could not restore reliably?

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Simon Riggs 2004-07-13 22:52:34 Re: Point in Time Recovery
Previous Message Simon Riggs 2004-07-13 22:25:34 Re: Point in Time Recovery

Browse pgsql-hackers by date

  From Date Subject
Next Message Oliver Elphick 2004-07-13 22:45:15 Re: [HACKERS] Is "trust" really a good default?
Previous Message Bruce Momjian 2004-07-13 22:38:07 Re: serverlog rotation/functions

Browse pgsql-patches by date

  From Date Subject
Next Message Oliver Elphick 2004-07-13 22:45:15 Re: [HACKERS] Is "trust" really a good default?
Previous Message Bruce Momjian 2004-07-13 22:38:07 Re: serverlog rotation/functions