Re: initdb and fsync - Mailing list pgsql-hackers

From Tom Lane
Subject Re: initdb and fsync
Date
Msg-id 18813.1328471420@sss.pgh.pa.us
Whole thread Raw
In response to Re: initdb and fsync  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-hackers
Jeff Davis <pgsql@j-davis.com> writes:
> On Sat, 2012-02-04 at 20:18 -0500, Noah Misch wrote:
>> If we add fsync calls to the initdb process, they should cover the entire data
>> directory tree.  This patch syncs files that initdb.c writes, but we ought to
>> also sync files that bootstrap-mode backends had written.

> It doesn't make sense for initdb to take responsibility to sync files
> created by the backend.

No, but the more interesting question is whether bootstrap mode troubles
to fsync its writes.  I'm not too sure about that either way ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Stefan Keller
Date:
Subject: Re: JSON output functions.
Next
From: Andrew Dunstan
Date:
Subject: Re: JSON output functions.