Re: pgsql: Recursively fsync() the data directory after a crash.

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Robert Haas <rhaas(at)postgresql(dot)org>, pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Recursively fsync() the data directory after a crash.
Date: 2015-05-18 01:44:27
Message-ID: 555943FB.8090703@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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?

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2015-05-18 02:24:38 pgsql: Fix typos
Previous Message Tom Lane 2015-05-18 01:22:18 pgsql: Fix failure to copy IndexScan.indexorderbyops in copyfuncs.c.