Re: Problem with PITR recovery - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Problem with PITR recovery
Date
Msg-id 13133.1113667228@sss.pgh.pa.us
Whole thread Raw
In response to Problem with PITR recovery  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Problem with PITR recovery
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> The problem is that we don't archive the partially written xlog file,
> and in this case that xlog file contains the information needed to make
> the tar file consistent.

> Is this a known problem?  Do we document this?  If so, I can't find it. 

Yes, and yes.  You did not follow the procedure:

http://www.postgresql.org/docs/8.0/static/backup-online.html#BACKUP-PITR-RECOVERY

In particular, step 2 says:

: ... you need at the least to copy the contents of the pg_xlog
: subdirectory of the cluster data directory, as it may contain logs which
: were not archived before the system went down.

Possibly this needs to be highlighted a little better.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Problem with PITR recovery
Next
From: elein@varlena.com (elein)
Date:
Subject: Re: argtype_inherit() is dead code