Re: initdb and fsync - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: initdb and fsync
Date
Msg-id 1332730776.8251.93.camel@jdavis
Whole thread Raw
In response to Re: initdb and fsync  (Cédric Villemain <cedric@2ndquadrant.com>)
Responses Re: initdb and fsync  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Joachim Wieland
Date:
Subject: Re: patch for parallel pg_dump
Next
From: Andres Freund
Date:
Subject: Re: Command Triggers, v16