pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: Re: pgsql: Recursively fsync() the data directory after a crash.
Date: Sun, 17 May 2015 21:44:27 -0400
Message-ID: <555943FB.8090703@gmx.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 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



view thread (19+ messages)  latest in thread

Message-ID: <555943FB.8090703@gmx.net>
Permalink:  ../555943FB.8090703@gmx.net/
Also on:    postgresql.org/message-id/555943FB.8090703@gmx.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: peter_e@gmx.net, rhaas@postgresql.org
  Subject: Re: pgsql: Recursively fsync() the data directory after a crash.
  In-Reply-To: <555943FB.8090703@gmx.net>
  References: <E1YpL1A-0007Tz-Av@gemulon.postgresql.org> <555943FB.8090703@gmx.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