PostgreSQL Source Code  git master
freebsd.h
Go to the documentation of this file.
1 /* src/include/port/freebsd.h */
2 
3 /*
4  * Set the default wal_sync_method to fdatasync. xlogdefs.h's normal rules
5  * would prefer open_datasync on FreeBSD 13+, but that is not a good choice on
6  * many systems.
7  */
8 #ifdef HAVE_FDATASYNC
9 #define PLATFORM_DEFAULT_SYNC_METHOD SYNC_METHOD_FDATASYNC
10 #endif