Heavily-WIP: Send file descriptors to checkpointer for fsyncing. clone-fd-checkpointer
authorAndres Freund <[email protected]>
Mon, 21 May 2018 22:43:30 +0000 (15:43 -0700)
committerAndres Freund <[email protected]>
Mon, 21 May 2018 22:43:30 +0000 (15:43 -0700)
commit306975ba3856c5be31eca5d8efe6d7fe9eee06c6
tree1c68f276a688380d7a75541f5f0db2911a652596
parentbd7dcdafa752802566d0fef3ac9c126c41f276e4
Heavily-WIP: Send file descriptors to checkpointer for fsyncing.

This addresses the issue that, at least on linux, fsyncs only reliably
see errors that occurred after they've been opeend.

Author:
Reviewed-By:
Discussion: https://postgr.es/m/
Backpatch:
src/backend/access/transam/xlog.c
src/backend/postmaster/checkpointer.c
src/backend/postmaster/postmaster.c
src/backend/storage/smgr/md.c
src/include/postmaster/bgwriter.h
src/include/postmaster/postmaster.h
src/include/storage/smgr.h