Re: Point in time recovery + replication

From: prakhar jauhari <prak840(at)gmail(dot)com>
To: Gabriele Bartolini <gabriele(dot)bartolini(at)2ndquadrant(dot)it>
Cc: German Becker <german(dot)becker(at)gmail(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Point in time recovery + replication
Date: 2013-05-14 04:47:07
Message-ID: CAEd0_=8Y7skDyjuZqqsKVL=uSYhi9kp9Fo37U7QBTzOW97hHQw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi all,

I have been trying to setup Postgres 9.2 in HA using streaming replication
and base backup.
There is no problem in switching from:
Standby -> Master using the trigger file mechanism provided by postgres.

The problem comes when switching from:
Master -> Stanbdy : I try to set up Streaming replication from the new
standby to the new Master,
but replication doesn't start, rather i find the following error in
postgres logs

"FATAL: timeline 2 of the primary does not match recovery target timeline
1".

Is there any way the timeline can be bumped up to the correct number on the
new standby, without taking
base backup. And is it safe to use the method described in
http://michael.otacoo.com/postgresql-2/postgres-9-3-feature-highlight-timeline-switch-of-slave-node-without-archives/
to bump up the timeline.

regards,
Prakhar

On Mon, May 13, 2013 at 7:35 PM, Gabriele Bartolini <
gabriele(dot)bartolini(at)2ndquadrant(dot)it> wrote:

> Hi German,
>
> Il 09/05/13 17:45, German Becker ha scritto:
> > Do I need to get a new copy of the primary to continue the replication?
> Yes. At that point, it is a completely different server with its own new
> life. :)
>
> Ciao,
> Gabriele
>
> --
> Gabriele Bartolini - 2ndQuadrant Italia
> PostgreSQL Training, Services and Support
> gabriele(dot)bartolini(at)2ndQuadrant(dot)it | www.2ndQuadrant.it
>
>
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Nicolas Zin 2013-05-14 20:57:06 select * from pg_stat_bgwriter slow
Previous Message Gabriele Bartolini 2013-05-13 14:05:20 Re: Point in time recovery + replication