pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: Re: pgsql: Recursively fsync() the data directory after a crash.
Date: Mon, 04 May 2015 23:37:21 -0400
Message-ID: <55483AF1.50208@dunslane.net> (raw)
In-Reply-To: <E1YpL1A-0007Tz-Av@gemulon.postgresql.org>
References: <E1YpL1A-0007Tz-Av@gemulon.postgresql.org>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>


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



view thread (19+ messages)  latest in thread

Message-ID: <55483AF1.50208@dunslane.net>
Permalink:  ../55483AF1.50208@dunslane.net/
Also on:    postgresql.org/message-id/55483AF1.50208@dunslane.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andrew@dunslane.net, rhaas@postgresql.org
  Subject: Re: pgsql: Recursively fsync() the data directory after a crash.
  In-Reply-To: <55483AF1.50208@dunslane.net>
  References: <E1YpL1A-0007Tz-Av@gemulon.postgresql.org> <55483AF1.50208@dunslane.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox