Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f3yrC-0005ZX-R5 for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Apr 2018 06:58:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f3yrB-0003ep-NH for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Apr 2018 06:58:49 +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.89) (envelope-from ) id 1f3yrB-0003eC-H0 for pgsql-bugs@lists.postgresql.org; Thu, 05 Apr 2018 06:58:49 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f3yr8-0006JW-VG for pgsql-bugs@postgresql.org; Thu, 05 Apr 2018 06:58:49 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id BA82B20DF9; Thu, 5 Apr 2018 02:58:45 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 05 Apr 2018 02:58:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=Bu4WHmXbWD5J1ojD96wi0tKW0RsXKwY1CWHnjT+ssLQ=; b=ehtyvrpi 8WGarVcCsGa+IbBn459rxH1gLeRJYsNnkFJ8takUNZqa7HwUFfWaBh7LG8aZH76P 2EAIMsQkQKkZJb9U5tgQ5WA2OhNvCK8Xp9uc1vufxvtpLNCAfzK6ASIymHBH/tRP caYZu5Y9Qc/NDnIq+BK+V6KJ7UKABXZ6bhblD4kZvSREaNVax1LHZpKR9gKUcx5h xjnqkQWFcEZ4K8PaBkCI7OKe4bZ0ECwmgOlFE9WMKZ/modLdI4dn/5P7EBdPKePl Nx6yCfR4Ht8Q5WW2uFmKzkdT08iUenUl5Na2FFjZkoB8utHXfZ1eLS172fUo7bAS idauV3mdpT//Nw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=Bu4WHmXbWD5J1ojD96wi0tKW0RsXK wY1CWHnjT+ssLQ=; b=lLNdAmUePlaPSVC8Tr2Y+Ab6gFc384GcFLu8XNPBODtp6 z0rQhjdLQO9fhwvOTjNc9v7rOuV1bGM76ycd7BYS+wIe9u2fEqJSPKO1mNac5jP2 P6nU5RJMOroT4OooJL+oYYi/tIv1XoSYGhGOU9vmFLnYRM4EC8qN3wrwDjUOGyE+ Li8VqJo3hh/mta23XrPZfLxuCQ49hZYWpzo3bL+olbkyZqaBZ7oN16va2mv/pQQi IWKl03qpeGzuqER2F9l4AIjgtnghHZQ3q0DSnVtSidqihHfwRVXeVDFc4b4gFfA3 QITEiZxI23S6HLB2tmBqBAWxpl8MYjuA5/MJycsdg== X-ME-Sender: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 293BC102C3; Thu, 5 Apr 2018 02:58:42 -0400 (EDT) Date: Thu, 5 Apr 2018 15:58:40 +0900 From: Michael Paquier To: TipTop Labs Cc: Tom Lane , Dmitry Dolgov <9erthalion6@gmail.com>, Masahiko Sawada , Michael Paquier , PostgreSQL mailing lists Subject: Re: BUG #14999: pg_rewind corrupts control file global/pg_control Message-ID: <20180405065840.GH1732@paquier.xyz> References: <20180307014624.GC1744@paquier.xyz> <30255.1522711675@sss.pgh.pa.us> <20180403024110.GB1621@paquier.xyz> <20180404072625.GB2208@paquier.xyz> <22961.1522867812@sss.pgh.pa.us> <20180405013818.GC1732@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fckbADODYWZD5TdN" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --fckbADODYWZD5TdN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Apr 05, 2018 at 07:04:40AM +0200, TipTop Labs wrote: > One final word about my original patch, since the commit message for > 0001 refers to its limitations: I acknowledge that it cannot cover > situations where the order of processing files is such that the second > loop detects non-writable files only after it had already done work on > some others. It was meant to fix the specific problem I ran into > without breaking the regression tests that ship with the source code > ("make check"). The main reason that it is not more elaborate is that > I did not want to submit anything affecting more than a few lines of > code without prior input from the community. That definitely makes sense to me. Reviews and discussions can take a long time to settle so this method looks right to me. It is better not spend too much time on a patch if you unsure of its shape, and much better to ask for input first before diving more into the details. This stuff is really complicated and the devil is in the details. > So from my perspective I welcome both 0001 and 0002. OK, thanks for confirming! -- Michael --fckbADODYWZD5TdN Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlrFySAACgkQnvQgOdby QH2n8w//RzRNrpLtVDGI42ot+Ol/inr6DxAnrbsg2i/upXRVb26V4JaMfJMihZFn gf9IsZoInyJMIFiHIVpUWjCRoIFmimN7cl6Ty34rHyxg/Z6oj8k0i1CYKPEpdkGk tV1cV/knI3VXBJ8v9eW018JJcxCXxsHRALb0E+LzoOuH8qVBZi4I8FzVCSV1Y649 Z09ngDPGjT1GLPw4a/G6CzPe8Z3T9ih0CAWmVVsaXwM0/wdAz3ZjtfMUyHcYGjFx bSwqaBJA7ir88ci+O1UH5gpYPzUGn8LuHvEr3OKAubLpzyaaaLv7EfaZtaq7IPco qAkKaf09wR2cPryL2aNAC23dj1jroSm/7CQEfyaOhx156QRX7MFB8RfMf1j3nslD YrpJNfZRDYStK2pRXnrISwT9296H4sNy0wCERMrwTvGn+YQ9P0VlQWf9kYxSzwPx HJMJYfdmcHIhFiM4HA7ZtmukehNa2Pa9SFTWgKFt/dzjtqDBCE7/CTxCP7l7j45R qC05g82oIo1dg/8QC/Y/z1LiicORCN6a8arT1uMSAiv7r1Ip981w46E0CxPMEKqa rdQwNPjGkAFLw/CK4Q07Y+fd8UVPdku/dDEyfrFT+3qut9wBjOldmZLa0iyZ6IV1 7egwIt/uHRihTszF6sFkbo8QRNYL1apBY5jMQb+pRuzakPGF45o= =e/Jm -----END PGP SIGNATURE----- --fckbADODYWZD5TdN--