Re: [solved] WAL ends before end time of backup dump

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [solved] WAL ends before end time of backup dump
Date: 2006-11-08 22:22:16
Message-ID: 1163024536.31124.478.camel@dogma.v10.wvs
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2006-11-07 at 17:20 -0500, Tom Lane wrote:
> Jeff Davis <pgsql(at)j-davis(dot)com> writes:
> > LOG: restored log file "00000001000000170000002B" from archive
> > LOG: record with zero length at 17/2B6EACC8
> > LOG: redo done at 17/2B6EAC84
>
> It looks to me like you archived this log file before it was fully
> written. You should take a close look at your archiving procedures.

Ok, I found the problem. Completely my mistake, because I was running
through the test without being careful.

On the first recovery attempt, I left the postmaster.conf, including the
archive_command setting, in the data dir along with some archives in
pg_xlog. When I started recovery, it overwrote some of my archived
segments.

The archive script isn't supposed to overwrite existing files, but I had
a typo in the check and didn't realize it because in the normal case
everything was archiving correctly.

Would it make sense to throw an error if there's a recovery.conf and
files already exist in pg_xlog?

Thanks for narrowing down the problem for me.

Regards,
Jeff Davis

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2006-11-08 22:41:20 Re: 8.1.2 locking issues
Previous Message Talha Khan 2006-11-08 21:23:43 Re: 8.1.2 postmaster died