Re: timeline X of the primary does not match recovery target timeline Y

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Adam Tistler <atistler(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: timeline X of the primary does not match recovery target timeline Y
Date: 2011-10-20 16:00:08
Message-ID: 1319126408.16256.66.camel@jdavis
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

On Mon, 2011-09-26 at 08:54 -0400, Adam Tistler wrote:
> I am trying to set up master/slave warm standby streaming replication
> (9.1). I am not doing archiving/log shipping. I have read that you
> cannot reverse roles between the master and slave, and that once a
> slave is "promoted", you need to use pg_basebackup or rsync to copy
> files from the newly promoted master to the old master. I am fine
> with this, however, in my case all I am trying to do is re-enable the
> slave to be in recovery mode. I am doing this by deleting the trigger
> file ( which I had originally created to promote the slave to master )
> and moving recovery.done to recovery.conf, then restarting postgres.
> As a result I get the following error:
>
> FATAL: timeline 2 of the primary does not match recovery target
> timeline 3

Once it's promoted to a primary, you can't set it to start recovering
from another system again (without taking a new base backup).

Did I understand your question correctly?

Regards,
Jeff Davis

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Adam Tistler 2011-10-20 16:45:43 Re: timeline X of the primary does not match recovery target timeline Y
Previous Message ml ml 2011-10-20 11:35:22 Postgresql in Xen DomU

Browse pgsql-general by date

  From Date Subject
Next Message Ronan Dunklau 2011-10-20 16:28:11 Postgresql - FDW, ForeignScanState and subqueries
Previous Message Jeff Adams 2011-10-20 15:47:31 Re: Date Range Using Months and Days Only