← Back to context

Comment by mjw1007

7 years ago

The annoying thing is that the Postgres people don't even really need "sync this file right now" for the main data files.

AIUI what they'd ideally like is "sync this file reasonably soon, and let me know when it's finished".

io_uring supports issuing async sync_file_range requests, which can be used to do most of the heavy lifting.

You will still need a final fsync to also get the metadata written, but that should faster at that point.