postgresql/src/include/port
Thomas Munro 1fefe8879a Default to wal_sync_method=fdatasync on FreeBSD.
FreeBSD 13 gained O_DSYNC, which would normally cause wal_sync_method to
choose open_datasync as its default value.  That may not be a good
choice for all systems, and performs worse than fdatasync in some
scenarios.  Let's preserve the existing default behavior for now.

Like commit 576477e73c, which did the same for Linux, back-patch to all
supported releases.

Discussion: https://postgr.es/m/CA%2BhUKGLsAMXBQrCxCXoW-JsUYmdOL8ALYvaX%3DCrHqWxm-nWbGA%40mail.gmail.com
2021-02-15 16:06:25 +13:00
..
atomics Avoid need for valgrind suppressions for pg_atomic_init_u64 on some platforms. 2020-06-08 20:02:56 -07:00
win32 Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
win32_msvc Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
aix.h Attempt to work around a 32bit xlc compiler bug from a different place. 2015-08-08 01:19:02 +02:00
atomics.h Remove overzeleous assertions in pg_atomic_flag code. 2018-04-07 18:30:15 -07:00
cygwin.h Remove checks for now long outdated compilers. 2012-09-28 19:43:50 -04:00
darwin.h Refer to OS X as "macOS", except for the port name which is still "darwin". 2016-09-25 15:40:57 -04:00
freebsd.h Default to wal_sync_method=fdatasync on FreeBSD. 2021-02-15 16:06:25 +13:00
hpux.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
linux.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00
netbsd.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
openbsd.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
pg_bswap.h Fix misc typos, mostly in comments. 2018-07-18 16:17:42 +03:00
pg_crc32c.h Use ARMv8 CRC instructions where available. 2018-04-04 12:22:45 +03:00
solaris.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
win32.h Remove outdated/removed Win32 URLs in C comments 2018-01-09 18:33:21 -05:00
win32_port.h Update copyright for 2018 2018-01-02 23:30:12 -05:00