On Sat, 2012-03-17 at 17:48 +0100, Cédric Villemain wrote: > I agree with Andres. > > > I believe we should use sync_file_range (_before?) with linux. > > And we can use posix_fadvise_dontneed on other kernels. > OK, updated patch attached. sync_file_range() is preferred, posix_fadvise() is a fallback.
Regards, Jeff Davis
initdb-fsync-20120325.patch.gz
Description: GNU Zip compressed data
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers