Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YuA6j-0002KT-VP for pgsql-committers@arkaria.postgresql.org; Mon, 18 May 2015 01:44:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YuA6j-0001Ef-9i for pgsql-committers@arkaria.postgresql.org; Mon, 18 May 2015 01:44:41 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YuA6i-0001EY-Ai for pgsql-committers@postgresql.org; Mon, 18 May 2015 01:44:40 +0000 Received: from mout.gmx.net ([212.227.15.19]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1YuA6b-0001Pv-4E for pgsql-committers@postgresql.org; Mon, 18 May 2015 01:44:39 +0000 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0LwJFG-1ZFjyi2g9u-0185kM for ; Mon, 18 May 2015 03:44:30 +0200 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailauth.nyi.internal (Postfix) with ESMTP id 28E4320A2F for ; Sun, 17 May 2015 21:44:29 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Sun, 17 May 2015 21:44:29 -0400 X-Sasl-enc: crLWpiy2eY8eIDz1UCVSVCmX/SkNt4/v+X/xKmDCyXDd 1431913468 Received: from [10.0.0.13] (unknown [67.165.24.246]) by mail.messagingengine.com (Postfix) with ESMTPA id CCC6968007E; Sun, 17 May 2015 21:44:28 -0400 (EDT) Message-ID: <555943FB.8090703@gmx.net> Date: Sun, 17 May 2015 21:44:27 -0400 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Robert Haas , pgsql-committers@postgresql.org Subject: Re: pgsql: Recursively fsync() the data directory after a crash. References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:HzMA1XF35+FD1nxAUQw0CefEJVbTNWGX7nCdhlc/AVzMqqMyEi7 c+N1R2ioBXKl7e0fCdqgy3n+wL5+iLLmMUT+mCSpv5MLwYj0drSg1Wos9JQtQvAuqTu+NQW O4PWu0UgiR6VSbP3+Ml81adOcKiUcf4zywTtB4DJ+dSQeH5jlF+x/pCsYcSww5RD13hX8h6 VJb6BHoZhIiQaAn2Sfpxg== X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -5.2 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 5/4/15 2:23 PM, Robert Haas wrote: > Recursively fsync() the data directory after a crash. > > Otherwise, if there's another crash, some writes from after the first > crash might make it to disk while writes from before the crash fail > to make it to disk. This could lead to data corruption. If there a reason why in pre_sync_fname(), the error message does not contain a %m? -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers