From: John Lumby <johnlumby@hotmail.com>
To: Julien Rouhaud <julien.rouhaud@dalibo.com>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: pgsql bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14109: pg_rewind fails to update target control file in one scenario
Date: Mon, 25 Apr 2016 18:15:12 -0400
Message-ID: <COL131-W383FA65CC9B62A7ED0157DA3620@phx.gbl> (raw)
In-Reply-To: <571E4EB1.5000104@dalibo.com>
References: <20160424192549.2725.71787@wrigleys.postgresql.org>
<CAB7nPqSaj3vHsW9361hacr=Uh0Os3Fq8bNUPd-Edb6pb15Jv_A@mail.gmail.com>
<COL131-W5403F755BF3290F32B1E62A3620@phx.gbl>
<CAB7nPqRdd8ESxKmt=VvzgU171iRrzJABnEU6mCedaG-NDXSOvw@mail.gmail.com>
<COL131-W1121BE46904C56BD5B948DA3620@phx.gbl>
<571E2F5F.4080500@dalibo.com>
<COL131-W83A40422B650A246F11287A3620@phx.gbl>
<571E4EB1.5000104@dalibo.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
I've tested same scenario but with the setting
recovery_target_timeline = 'latest'
and on 9.5.2,
and now the new Standby receives new WAL correctly after the pg_rewind and restart
So, assuming this is reliable (will work without requiring archiving)
then my problem is solved.
Thanks for everyone's help, please close the bug as user error
Cheers, John
----------------------------------------
> Subject: Re: [BUGS] BUG #14109: pg_rewind fails to update target control file in one scenario
> To: johnlumby@hotmail.com; michael.paquier@gmail.com
> CC: pgsql-bugs@postgresql.org
> From: julien.rouhaud@dalibo.com
> Date: Mon, 25 Apr 2016 19:06:57 +0200
>
> On 25/04/2016 17:45, John Lumby wrote:
>>> From: julien.rouhaud@dalibo.com
>>>
>>> Did you set the recovery_target_timeline parameter to "latest" in the
>>> recovery.conf file? (see
>>> http://www.postgresql.org/docs/current/static/recovery-target-settings.html).
>>
>> Thanks Julien, no I did not, I will re-test with that later, on 9.5.2
>> Meanwhile one question on that. The documentation states
>> "Setting this to latest recovers
>> to the latest timeline found in the archive, which ..."
>> However I am running my systems with
>> archive_mode = off
>> I am wondering whether
>> recovery_target_timeline parameter = "latest"
>> is expected to work reliably to fix my particular problem when archiving is not in effect.
>>
>
> I'm not sure where it's documented, but the timeline change works with
> log shipping, and since 9.3 with streaming replication.
>
> That's why Michael previously said: "System A is still on its previous
> timeline 11, and will jump
> to timeline 12 once it has connected back. That's possible since 9.3."
>
> --
> Julien Rouhaud
> http://dalibo.com - http://dalibo.org
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: johnlumby@hotmail.com, julien.rouhaud@dalibo.com, michael.paquier@gmail.com
Subject: Re: BUG #14109: pg_rewind fails to update target control file in one scenario
In-Reply-To: <COL131-W383FA65CC9B62A7ED0157DA3620@phx.gbl>
References: <20160424192549.2725.71787@wrigleys.postgresql.org> <CAB7nPqSaj3vHsW9361hacr=Uh0Os3Fq8bNUPd-Edb6pb15Jv_A@mail.gmail.com> <COL131-W5403F755BF3290F32B1E62A3620@phx.gbl> <CAB7nPqRdd8ESxKmt=VvzgU171iRrzJABnEU6mCedaG-NDXSOvw@mail.gmail.com> <COL131-W1121BE46904C56BD5B948DA3620@phx.gbl> <571E2F5F.4080500@dalibo.com> <COL131-W83A40422B650A246F11287A3620@phx.gbl> <571E4EB1.5000104@dalibo.com> <COL131-W383FA65CC9B62A7ED0157DA3620@phx.gbl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox