Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YpTfo-0007Sq-NC for pgsql-committers@arkaria.postgresql.org; Tue, 05 May 2015 03:37:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YpTfo-0005Lb-72 for pgsql-committers@arkaria.postgresql.org; Tue, 05 May 2015 03:37:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YpTfn-0005LU-Cz for pgsql-committers@postgresql.org; Tue, 05 May 2015 03:37:31 +0000 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1YpTfk-0006Br-2e; Tue, 05 May 2015 03:37:30 +0000 Received: from mfilter1-d.gandi.net (mfilter1-d.gandi.net [217.70.178.130]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id C16CB17207C; Tue, 5 May 2015 05:37:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter1-d.gandi.net Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mfilter1-d.gandi.net (mfilter1-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 5o6KWt5fRxgb; Tue, 5 May 2015 05:37:23 +0200 (CEST) X-Originating-IP: 98.27.58.255 Received: from [192.168.10.146] (cpe-98-27-58-255.nc.res.rr.com [98.27.58.255]) (Authenticated sender: adsend@dunslane.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 17E72172074; Tue, 5 May 2015 05:37:22 +0200 (CEST) Message-ID: <55483AF1.50208@dunslane.net> Date: Mon, 04 May 2015 23:37:21 -0400 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.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; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 05/04/2015 02: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. > > Back-patch to all supported versions. > This appears to have broken Windows builds. At least it's broken by using the two argument form of open instead of the three argument form, for which we have a #define in the win32 case, and pg_win32_is_junction is a typo - the first _ should not be there. cheers andrew -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers