postgresql/src
Tom Lane 576477e73c Force default wal_sync_method to be fdatasync on Linux.
Recent versions of the Linux system header files cause xlogdefs.h to
believe that open_datasync should be the default sync method, whereas
formerly fdatasync was the default on Linux.  open_datasync is a bad
choice, first because it doesn't actually outperform fdatasync (in fact
the reverse), and second because we try to use O_DIRECT with it, causing
failures on certain filesystems (e.g., ext4 with data=journal option).
This part of the patch is largely per a proposal from Marti Raudsepp.
More extensive changes are likely to follow in HEAD, but this is as much
change as we want to back-patch.

Also clean up confusing code and incorrect documentation surrounding the
fsync_writethrough option.  Those changes shouldn't result in any actual
behavioral change, but I chose to back-patch them anyway to keep the
branches looking similar in this area.

In 9.0 and HEAD, also do some copy-editing on the WAL Reliability
documentation section.

Back-patch to all supported branches, since any of them might get used
on modern Linux versions.
2010-12-08 20:01:09 -05:00
..
backend Force default wal_sync_method to be fdatasync on Linux. 2010-12-08 20:01:09 -05:00
bin Remove misleading comments. Move _Clone and _DeClone functions before 2010-12-03 14:58:24 +02:00
include Force default wal_sync_method to be fdatasync on Linux. 2010-12-08 20:01:09 -05:00
interfaces In libpq/Makefile, use OBJS += as a way to break up long link lines into 2010-11-27 11:03:23 -05:00
makefiles Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
pl Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
port Fix portability issues in new src/port/inet_net_ntop.c file. 2010-11-26 18:00:26 -05:00
template Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
test Make output width consistent for all ways of invoking a regression test 2010-12-04 17:34:48 +02:00
timezone Improved parallel make support 2010-11-12 22:15:16 +02:00
tools Add inet_net_ntop.c as needed by MSVC, per Magnus. 2010-11-26 14:39:13 -05:00
tutorial Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Additional fixes for parallel make 2010-11-17 08:08:41 +02:00
Makefile.global.in Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
Makefile.shlib Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
bcc32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
nls-global.mk Fix makefile logic to not break the build when xgettext is missing 2010-10-14 23:16:46 +03:00
win32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00