Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a8w1p-00031p-4G for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Dec 2015 20:16:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a8w1o-0000km-Js for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Dec 2015 20:16:56 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a8w1C-0008U2-9K for pgsql-bugs@postgresql.org; Tue, 15 Dec 2015 20:16:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a8w19-0000oC-Qy for pgsql-bugs@postgresql.org; Tue, 15 Dec 2015 20:16:17 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id tBFKFxMo031549; Tue, 15 Dec 2015 15:15:59 -0500 From: Tom Lane To: Peter Eisentraut cc: Michael Paquier , PostgreSQL mailing lists , Heikki Linnakangas Subject: Re: pg_rewind exiting with error code 1 when source and target are on the same timeline In-reply-to: <56706F01.9040202@gmx.net> References: <5627E2A4.4000402@gmx.net> <566106F7.4000404@gmx.net> <566B82CF.6070809@gmx.net> <56706F01.9040202@gmx.net> Comments: In-reply-to Peter Eisentraut message dated "Tue, 15 Dec 2015 14:50:25 -0500" Date: Tue, 15 Dec 2015 15:15:59 -0500 Message-ID: <31548.1450210559@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Peter Eisentraut 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