Re: PITR Functional Design v2 for 7.5 - Mailing list pgsql-hackers

From Zeugswetter Andreas SB SD
Subject Re: PITR Functional Design v2 for 7.5
Date
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA40184D015@m0114.s-mxs.net
Whole thread Raw
In response to PITR Functional Design v2 for 7.5  ("Simon Riggs" <simon@2ndquadrant.com>)
List pgsql-hackers
> The only way we can support file-level hot backup is in conjunction with
> PITR-style WAL log archiving.  It is okay for the data area dump to be
> inconsistent, so long as your recovery process includes replay of WAL
> starting at some checkpoint before the filesystem dump started, and
> extending to some point after the filesystem dump finished.  Replaying
> WAL will correct the inconsistencies.

And the "last checkpoint" info resides in pg_control, and not in pg_clog, no ?
So basically a PITR restore would need to adjust the pg_control file
after filesystem restore and before starting recovery. Maybe it can take that
info from the oldest available WAL ? The OP would only need to ensure,
that only such logs that need to be rolled forward are visible (in the
correct directory) to the recovery.

Andreas


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] log_line_info
Next
From: Tom Lane
Date:
Subject: Re: PITR Functional Design v2 for 7.5