Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a8w6G-0003E8-WB for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Dec 2015 20:21:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a8w6G-00010t-AE for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Dec 2015 20:21:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a8w6F-000104-Q8 for pgsql-bugs@postgresql.org; Tue, 15 Dec 2015 20:21:31 +0000 Received: from mout.gmx.net ([212.227.17.20]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1a8w6C-0001jZ-9K for pgsql-bugs@postgresql.org; Tue, 15 Dec 2015 20:21:31 +0000 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0Lqyi7-1aeg9W0bnX-00ebb1 for ; Tue, 15 Dec 2015 21:21:25 +0100 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailauth.nyi.internal (Postfix) with ESMTP id 5033621DE7 for ; Tue, 15 Dec 2015 15:21:23 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Tue, 15 Dec 2015 15:21:23 -0500 X-Sasl-enc: 7gOgVGvwi7gaUbuzE5baf95tfJsgcX/xYJ/83d5a6T5R 1450210883 Received: from [192.168.110.199] (unknown [204.145.120.11]) by mail.messagingengine.com (Postfix) with ESMTPA id 0734FC016F2; Tue, 15 Dec 2015 15:21:23 -0500 (EST) Subject: Re: pg_rewind exiting with error code 1 when source and target are on the same timeline To: Tom Lane References: <5627E2A4.4000402@gmx.net> <566106F7.4000404@gmx.net> <566B82CF.6070809@gmx.net> <56706F01.9040202@gmx.net> <31548.1450210559@sss.pgh.pa.us> Cc: Michael Paquier , PostgreSQL mailing lists , Heikki Linnakangas From: Peter Eisentraut Message-ID: <56707642.5010708@gmx.net> Date: Tue, 15 Dec 2015 15:21:22 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <31548.1450210559@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:+2dqc8BSaTxcsnzJldQjke79zBXTdCfozCaQfz0l2vUReUz048S NBYEWhK17EjuLGowcQdnPlqinpnM2vQ+uaTgEOyoE/+CDks16zya6n2uvk+xfVc5erzL+qf Bp3eblzOLubSbdu50U1IoH+O0r7sHUyflpFf+SUuTVanaWsQ1niDNbHdkmxQ58LdktIwghc 1NL2wl0ESiVZ8q9EuNJag== X-UI-Out-Filterresults: notjunk:1;V01:K0:pPpaEqYBKUo=:ifs3rBB6+j/XqIKr1T507D 5Ka1+vWkJcu2Jgln0xTbqDNPm2gY7/+Qfwj1C/0rA24h5rYLMZPrA6XcqCGf+DJn++m0qZfHF YLd3fqjGK2aZtaBlUlbAX3kdrQzpsYXFkTNksDgZqJc7TQVq956TSlBGkNtUnDhmPGd/VQLYc 4Kr4gpZqNVYR66M8ojJbAjfero6PgbA4YqqFL74a55mFOWnvBX0CXtdI28tJ73jTyaxYCjG6b NnXSb6HUehy4u4NpGVNSHTKxwhhHqY8z1ZxM18416OBqvXs2XUiTusd5WVIl54KfYmScpWjdo 1AHdIZBa2M8mj9myle9oAE9MzsJZLYe7B52nEi6iioHWVwg8I2r8wjnjX+ON9JK4bjawrksPl 07PaP3XtXnMlVBDKOgxH6+RM6aVnKl+O57yNqYx88UIRy5+7xy67YqPX58bMbxyQ78/PWxDGR 9OmyJnb2J2pVnGror7ncjh4AQyUTUCCKLMWZ0ilVHs70JJJdkJmNSuV525i4hCEfl0JX5y2dF m/9hGwPbShElb7ISSvTgK/racU216NcrC5eiwPPZxa850qok5riG5TNwnvlYvxYgX2dgpK773 dqJkt1far7QdlqN1JfDN6DrdcdSYffez+YeCqWH+8gbsa1sETlUA14s4uJvzpJcqDhOokZuw5 Y5Fqnwkw7drMikcTx6Q8AR16eFrHRq7FXMVlxSj0EwHxzTmQb3qcS3gYJcw5Ay2zLw3qmkHfB mSH/DYMkcbWlCXJNjSuOZFeZHcjXb9FKGIf8ExbmsRZjhEm2WFsnExqQVLIZpBKPUcgdgKsWS Nbw3N9B X-Pg-Spam-Score: -2.6 (--) 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 On 12/15/15 3:15 PM, Tom Lane wrote: > 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? 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