Modify documentation to explain default value of "pragma synchronous".

No code changes. (CVS 2459)

FossilOrigin-Name: 453014421e9a739b47d4c28b0342454e4c686199
This commit is contained in:
danielk1977 2005-05-16 02:13:17 +00:00
parent 29f214bdaa
commit 5205b40393
3 changed files with 16 additions and 12 deletions

View File

@ -1,5 +1,5 @@
C Change\sto\sthe\slemon\sparser\ssuggested\sby\sGeert\sJanssen.\s\sAppears\sto\shave\sno\nimpact\son\sSQLite.\s(CVS\s2458)
D 2005-05-11T14:28:15
C Modify\sdocumentation\sto\sexplain\sdefault\svalue\sof\s"pragma\ssynchronous".\nNo\scode\schanges.\s(CVS\s2459)
D 2005-05-16T02:13:18
F Makefile.in 5c00d0037104de2a50ac7647a5f12769795957a3
F Makefile.linux-gcc 06be33b2a9ad4f005a5f42b22c4a19dab3cbb5c7
F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028
@ -270,7 +270,7 @@ F www/oldnews.tcl 61e4b210569e3f45b2df77482ddabb3fa2e8a8a6
F www/omitted.tcl f1e57977299c3ed54fbae55e4b5ea6a64de39e19
F www/opcode.tcl 5bd68059416b223515a680d410a9f7cb6736485f
F www/optimizing.tcl f0b2538988d1bbad16cbfe63ec6e8f48c9eb04e5
F www/pragma.tcl bf23f023a02a0125508d6ff67796b7057c7583fe
F www/pragma.tcl fee45a370a6c29872fdba2234285c791d59bbc6b
F www/quickstart.tcl 6f6f694b6139be2d967b1492eb9a6bdf7058aa60
F www/speed.tcl 656ed5be8cc9d536353e1a96927b925634a62933
F www/sqlite.tcl b51fd15f0531a54874de785a9efba323eecd5975
@ -279,7 +279,7 @@ F www/tclsqlite.tcl 425be741b8ae664f55cb1ef2371aab0a75109cf9
F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
F www/version3.tcl a99cf5f6d8bd4d5537584a2b342f0fb9fa601d8b
F www/whentouse.tcl 528299b8316726dbcc5548e9aa0648c8b1bd055b
P 748771a8ad7f175e49f253d0c1ace3fc55814418
R c8e6171ba654d699904955436182da2b
U drh
Z a6e8b00756af4dd094b10ed55321b09b
P 6fda60083f258a4943c859d768ea7142de831594
R fd2c4908e0fdb2494d48b2e0803860c0
U danielk1977
Z 90c663f1f4698e391b7c8726040b4620

View File

@ -1 +1 @@
6fda60083f258a4943c859d768ea7142de831594
453014421e9a739b47d4c28b0342454e4c686199

View File

@ -1,7 +1,7 @@
#
# Run this Tcl script to generate the pragma.html file.
#
set rcsid {$Id: pragma.tcl,v 1.13 2005/03/31 21:02:46 drh Exp $}
set rcsid {$Id: pragma.tcl,v 1.14 2005/05/16 02:13:18 danielk1977 Exp $}
source common.tcl
header {Pragma statements supported by SQLite}
@ -240,13 +240,13 @@ puts {
the operating system crashes or if there is a power failure, the database
will be uncorrupted after rebooting. FULL synchronous is very
safe, but it is also slow.
When synchronous is NORMAL (1, the default), the SQLite database
When synchronous is NORMAL, the SQLite database
engine will still pause at the most critical moments, but less often
than in FULL mode. There is a very small (though non-zero) chance that
a power failure at just the wrong time could corrupt the database in
NORMAL mode. But in practice, you are more likely to suffer
a catastrophic disk failure or some other unrecoverable hardware
fault. So NORMAL is the default mode.
fault.
With synchronous OFF (0), SQLite continues without pausing
as soon as it has handed data off to the operating system.
If the application running SQLite crashes, the data will be safe, but
@ -254,7 +254,11 @@ puts {
crashes or the computer loses power before that data has been written
to the disk surface. On the other hand, some
operations are as much as 50 or more times faster with synchronous OFF.
</p></li>
</p>
<p>In SQLite version 2, the default value is NORMAL. For version 3, the
default was changed to FULL.
</p>
</li>
<a name="pragma_temp_store"></a>