From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Subject: Re: pg_rewind exiting with error code 1 when source and target are on the same timeline
Date: Tue, 15 Dec 2015 15:15:59 -0500
Message-ID: <31548.1450210559@sss.pgh.pa.us> (raw)
In-Reply-To: <56706F01.9040202@gmx.net>
References: <CAB7nPqSyLo4Jzp7-2hJh24YEU99tspkWj7vtj7NYTGcXasw2hg@mail.gmail.com>
<5627E2A4.4000402@gmx.net>
<CAB7nPqTZ2gnBKmNn+hzUry5Xi9=bYBoTAcMYASBnwNYH884u+A@mail.gmail.com>
<566106F7.4000404@gmx.net>
<CAB7nPqSKpFs_azsc__cMr2Tc1MNqS=1t0KxL4pSVR6C9afWNoQ@mail.gmail.com>
<566B82CF.6070809@gmx.net>
<CAB7nPqTMqNUQAHKGamYgv1C9iFk5nXORBJ6sY6gobVG=SS3n7A@mail.gmail.com>
<56706F01.9040202@gmx.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Peter Eisentraut <peter_e@gmx.net> writes:
> On 12/12/15 6:08 AM, Michael Paquier wrote:
>> And is caused by the fact that master checks that the source node has
>> been stopped with DB_SHUTDOWNED and not DB_SHUTDOWNED_IN_RECOVERY.
> It seems that the/a problem is actually that the test setup tries a
> rewind using the standby as the source and the standby also as the
> target. The source should be the primary, and then it doesn't matter
> whether we allow DB_SHUTDOWNED_IN_RECOVERY. Need to check that test setup.
While the test setup might have been a bit weird, I think that it
uncovered an actual bug in pg_rewind, or at least a very undesirable
and unnecessary restriction. Why should people not be allowed to use
it to sync in that direction?
regards, tom lane
--
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: tgl@sss.pgh.pa.us, peter_e@gmx.net, michael.paquier@gmail.com, hlinnaka@iki.fi
Subject: Re: pg_rewind exiting with error code 1 when source and target are on the same timeline
In-Reply-To: <31548.1450210559@sss.pgh.pa.us>
References: <CAB7nPqSyLo4Jzp7-2hJh24YEU99tspkWj7vtj7NYTGcXasw2hg@mail.gmail.com> <5627E2A4.4000402@gmx.net> <CAB7nPqTZ2gnBKmNn+hzUry5Xi9=bYBoTAcMYASBnwNYH884u+A@mail.gmail.com> <566106F7.4000404@gmx.net> <CAB7nPqSKpFs_azsc__cMr2Tc1MNqS=1t0KxL4pSVR6C9afWNoQ@mail.gmail.com> <566B82CF.6070809@gmx.net> <CAB7nPqTMqNUQAHKGamYgv1C9iFk5nXORBJ6sY6gobVG=SS3n7A@mail.gmail.com> <56706F01.9040202@gmx.net> <31548.1450210559@sss.pgh.pa.us>
* 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