From 31076c8beb05cb2f1d8bcaf87d769b7b2cd7524a Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sat, 6 Dec 2008 21:34:27 +0000 Subject: [PATCH] Document that non-data journaling is a recommended mount option. --- doc/src/sgml/wal.sgml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/doc/src/sgml/wal.sgml b/doc/src/sgml/wal.sgml index 373aa961dc..3b013746a3 100644 --- a/doc/src/sgml/wal.sgml +++ b/doc/src/sgml/wal.sgml @@ -1,4 +1,4 @@ - + Reliability and the Write-Ahead Log @@ -135,6 +135,21 @@ roll-forward recovery, also known as REDO.) + + + Because WAL restores database file + contents after a crash, it is not necessary to use a + journaled filesystem; in fact, journaling overhead can + reduce performance. For best performance, turn off + data journaling as a filesystem mount + option, e.g. use data=writeback on Linux. + Meta-data journaling (e.g. file creation and directory + modification) is still desirable for faster rebooting after + a crash. + + + + Using WAL results in a significantly reduced number of disk writes, because only the log