]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Update the FAQ to explain how to enable large file support. (CVS 779)
authordrh <drh@noemail.net>
Tue, 5 Nov 2002 23:24:38 +0000 (23:24 +0000)
committerdrh <drh@noemail.net>
Tue, 5 Nov 2002 23:24:38 +0000 (23:24 +0000)
FossilOrigin-Name: 4caf624e9061fe7489a8e3c6892975036a2272d5

manifest
manifest.uuid
www/faq.tcl

index 55bfddb59a38f74f9c282b4b11a2ee3d2933f6fd..ad09ca0eb98a3137a1f1ee419fa529810f13f0ea 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Add\ssupport\sfor\sdatabases\slarger\sthan\s2GB\sunder\sUnix.\s\sMust\sbe\scompiled\nwith\s-D_FILE_OFFSET_BITS=64\sand\s-D_LARGEFILE_SOURCE\sin\sorder\sto\swork\swith\nlarger\sdatabases.\s(CVS\s778)
-D 2002-11-05T23:03:03
+C Update\sthe\sFAQ\sto\sexplain\show\sto\senable\slarge\sfile\ssupport.\s(CVS\s779)
+D 2002-11-05T23:24:38
 F Makefile.in d6c9a85c2a5e696843201d090dcf8bf2f8716f2a
 F Makefile.linux-gcc b86a99c493a5bfb402d1d9178dcdc4bd4b32f906
 F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd
@@ -135,7 +135,7 @@ F www/crosscompile.tcl 3622ebbe518927a3854a12de51344673eb2dd060
 F www/datatypes.tcl 0cb28565580554fa7e03e8fcb303e87ce57757ae
 F www/download.tcl 0932d7f4f0e8b2adbbd22fac73132f86e43ab4a9
 F www/dynload.tcl 02eb8273aa78cfa9070dd4501dca937fb22b466c
-F www/faq.tcl 207d3e31597c63ed3bbecd58aaeaa38c53d39dd4
+F www/faq.tcl 7692f91e0b3f7ee9bb4387bc5028cb389dcc6546
 F www/fileformat.tcl a4b5c2c6e89b7d42d09f97fd4d7bbd39cbf24936
 F www/formatchng.tcl b4449e065d2da38b6563bdf12cf46cfe1d4d765e
 F www/index.tcl c93b864e3c7313bbe5f86eec571479d438307173
@@ -149,7 +149,7 @@ F www/speed.tcl a20a792738475b68756ea7a19321600f23d1d803
 F www/sqlite.tcl ae3dcfb077e53833b59d4fcc94d8a12c50a44098
 F www/tclsqlite.tcl 1db15abeb446aad0caf0b95b8b9579720e4ea331
 F www/vdbe.tcl 2013852c27a02a091d39a766bc87cff329f21218
-P 7c8c0e7633dca00bde7bc7c22075f688c034c200
-R bb6cf2c43588a20871dc03d12670be4d
+P a3f67fe9121ca4655510094fe775b8603a87800e
+R cf4f7decc291dfde5a877f00e8e00b89
 U drh
-Z 1af0198577d28fb69a5246d24434f76c
+Z d6bb8956fe38e60e0b9132cb2cfe2434
index e5e8968a894ea2546bd79f1392abf618b57b5d0f..cfe807fbfb733b785b8e2921ccf9aa29f1db0c51 100644 (file)
@@ -1 +1 @@
-a3f67fe9121ca4655510094fe775b8603a87800e
\ No newline at end of file
+4caf624e9061fe7489a8e3c6892975036a2272d5
\ No newline at end of file
index 98232256a5afe7a89dc036f8af6bd2733f84bdea..6e570406a60e312e0e0c2857177d5ef8612aaa83 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Run this script to generated a faq.html output file
 #
-set rcsid {$Id: faq.tcl,v 1.19 2002/08/24 18:24:57 drh Exp $}
+set rcsid {$Id: faq.tcl,v 1.20 2002/11/05 23:24:38 drh Exp $}
 
 puts {<html>
 <head>
@@ -311,9 +311,10 @@ ORDER BY name
 faq {
   Are there any known size limits to SQLite databases?
 } {
-  <p>Internally, SQLite can handle databases up to 2^40 bytes (1 terabyte)
+  <p>Internally, SQLite can handle databases up to 2^41 bytes (2 terabytes)
   in size.  But the backend interface to POSIX and Win32 limits files to
-  2^31 (2 gigabytes).</p>
+  2^31 (2 gigabytes).  (See the next question for instructions on how
+  to relax this limit under POSIX.)</p>
 
   <p>SQLite arbitrarily limits the amount of data in one row to 1 megabyte.
   There is a single #define in the source code that can be changed to raise
@@ -337,6 +338,21 @@ faq {
   may not exceed 255 characters in length.</p>
 }
 
+faq {
+  Are there any ways to increase the maximum database size limit above 2GB?
+} {
+  <p>For POSIX systems that support large files, you can increase the maximum
+  database size of SQLite by adding the following two options to your
+  compiler command line:</p>
+
+  <blockquote><pre>
+  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
+  </pre></blockquote>
+
+  <p>The resulting library and "sqlite" executable should be able to work
+  with databases as large as 2^41 bytes (2 terabytes).</p>
+}
+
 faq {
   What is the maximum size of a VARCHAR in SQLite?
 } {