Re: WAL archive stopping too early

From: Andy Shellam <andy(dot)shellam(at)mailnetwork(dot)co(dot)uk>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: WAL archive stopping too early
Date: 2006-02-17 15:02:18
Message-ID: 43F5E57A.7060609@mailnetwork.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi Tom,

Many thanks for the reply. I dug through the log files and found that
the archiving had been failing, so it stands a good chance I'd pulled 1B
out of the xlog directory ahead of time.
Over the course of the weekend (once I've upgraded to v8.1.3) I'll try
the exercise again and see what happens.

As for digging through xlog.c, I'm not a C programmer so I'll stay right
out of the way - leave that to you guys!!

Regards

Andy

Tom Lane wrote:
> Andy Shellam <andy(dot)shellam(at)mailnetwork(dot)co(dot)uk> writes:
>
>> Note there are plenty more files ready to run in the archive, and the
>> contents of the backup label only mention 1A as the final WAL file of
>> the backup, so it is starting to read the next WAL file, but stopping
>> for some reason. Is it because of the "record with zero length" that's
>> causing it to fail?
>>
>
> Yes --- that indicates the end of archive. It sounds to me like file 1B
> was archived while still only partly filled. Check the process you're
> using for deciding when to copy WAL files.
>
>
>> Also why is it restoring 1B from the archive twice?
>>
>
> I think that's expected behavior --- it has something to do with wanting
> to make the copy of 1B into the new writable front WAL segment. You can
> dig through xlog.c if you want the details.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>
> !DSPAM:43f5e383306306701047853!
>
>
>

--
the mail network - an alternative in a standardised world Andy Shellam
*the mail network (Server Support)*

0 845 838 0879 Phone
www.mailnetwork.co.uk <http://www.mailnetwork.co.uk> Web
andy(dot)shellam(at)mailnetwork(dot)co(dot)uk
<mailto:andy(dot)shellam(at)mailnetwork(dot)co(dot)uk> E-mail

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Alvaro Herrera 2006-02-17 15:06:05 Re: WAL archive stopping too early
Previous Message Tom Lane 2006-02-17 14:55:37 Re: WAL archive stopping too early