pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
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:21:22 -0500
Message-ID: <56707642.5010708@gmx.net> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 12/15/15 3:15 PM, Tom Lane wrote:
> 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?

That issue was known and was fixed in 9.6.  I don't mind that it was
fixed in 9.5 as well.



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (14+ messages)

Message-ID: <56707642.5010708@gmx.net>
Permalink:  ../56707642.5010708@gmx.net/
Also on:    postgresql.org/message-id/56707642.5010708@gmx.net

 · 

reply

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: peter_e@gmx.net, tgl@sss.pgh.pa.us, 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: <56707642.5010708@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> <31548.1450210559@sss.pgh.pa.us> <56707642.5010708@gmx.net>

* 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