File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -2853,7 +2853,7 @@ include_dir 'conf.d'
2853
2853
Not all of these choices are available on all platforms.
2854
2854
The default is the first method in the above list that is supported
2855
2855
by the platform, except that <literal>fdatasync</literal> is the default on
2856
- Linux. The default is not necessarily ideal; it might be
2856
+ Linux and FreeBSD . The default is not necessarily ideal; it might be
2857
2857
necessary to change this setting or other aspects of your system
2858
2858
configuration in order to create a crash-safe configuration or
2859
2859
achieve optimal performance.
Original file line number Diff line number Diff line change 203
203
#wal_sync_method = fsync # the default is the first option
204
204
# supported by the operating system:
205
205
# open_datasync
206
- # fdatasync (default on Linux)
206
+ # fdatasync (default on Linux and FreeBSD )
207
207
# fsync
208
208
# fsync_writethrough
209
209
# open_sync
Original file line number Diff line number Diff line change 1
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
You can’t perform that action at this time.
0 commit comments