Re: [COMMITTERS] pgsql: Speed up CREATE DATABASE by deferring the fsyncs until after

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: pgsql-hackers@postgresql.org
Cc: marcin mank <marcin.mank@gmail.com>, Greg Stark <stark@mit.edu>
Date: 2010-02-15T14:02:35Z
Lists: pgsql-hackers
On Monday 15 February 2010 14:50:03 marcin mank wrote:
> Yes, the issue with initdb failing is unrelated (and I have no problem
> about the fs being unsupported). But fsync still DOES fail on
> directories from the mount.
> 
> >> But I would not be that sure that eg. NFS or something like that won`t
> >> complain.
> > 
> > It does not.
> 
> What if someone mounts a NFS share from a system that does not support
> directory fsync (per buildfarm: unixware, AIX) on Linux? I agree that
> this is asking for trouble, but...
Then nothing. The fsync via nfs or such is a local operation. There is nothing 
like a "fsync" command transported - i.e. the fsync controls the local cache 
not the remote one...

Andres