Skip site navigation (1) Skip section navigation (2)

BUG #5011: Standby recovery unable to follow timeline change

From: "James Bardin" <jbardin(at)bu(dot)edu>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #5011: Standby recovery unable to follow timeline change
Date: 2009-08-25 19:48:03
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      5011
Logged by:          James Bardin
Email address:      jbardin(at)bu(dot)edu
PostgreSQL version: 8.4.0-1
Operating system:   Centos 5.3
Description:        Standby recovery unable to follow timeline change

This is another use case that fails with what looks like the same issue as
BUG #4796. 
(Sorry if this bug is redundant, I couldn't find any way to contribute to
that thread directly)

I'm working on a system where the master and standby servers are expected to
be able to swap roles repeatedly. The first failover works fine, but the
ex-master, now standby, can't recover using the shipped logs.

Using recovery_target_timeline='latest' finds the new history file, and
pg_standby looks good until recovery is attempted. Then we log errors like:

LOG:  unexpected timeline ID 0 in log file 0, segment 1, offset 0
LOG:  invalid primary checkpoint record

and any changes made after the first failover are lost.

Is this currently possible, or do I have to send a full file-level backup to
sync the ex-master server with the new master?


pgsql-bugs by date

Next:From: Kevin GrittnerDate: 2009-08-25 21:29:41
Subject: Re: BUG #5011: Standby recovery unable to follow timeline change
Previous:From: Magnus HaganderDate: 2009-08-25 16:42:28
Subject: Re: BUG #5008: Server Startup Problem - When server is configured for SSL

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group