From: drh
Date: Tue, 5 Nov 2002 23:24:38 +0000 (+0000)
Subject: Update the FAQ to explain how to enable large file support. (CVS 779)
X-Git-Tag: version-3.6.10~5294
X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f87e9de4c4ec15a61df05c5178ac875e7540800b;p=thirdparty%2Fsqlite.git
Update the FAQ to explain how to enable large file support. (CVS 779)
FossilOrigin-Name: 4caf624e9061fe7489a8e3c6892975036a2272d5
---
diff --git a/manifest b/manifest
index 55bfddb59a..ad09ca0eb9 100644
--- 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
diff --git a/manifest.uuid b/manifest.uuid
index e5e8968a89..cfe807fbfb 100644
--- a/manifest.uuid
+++ b/manifest.uuid
@@ -1 +1 @@
-a3f67fe9121ca4655510094fe775b8603a87800e
\ No newline at end of file
+4caf624e9061fe7489a8e3c6892975036a2272d5
\ No newline at end of file
diff --git a/www/faq.tcl b/www/faq.tcl
index 98232256a5..6e570406a6 100644
--- a/www/faq.tcl
+++ b/www/faq.tcl
@@ -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 {
@@ -311,9 +311,10 @@ ORDER BY name
faq {
Are there any known size limits to SQLite databases?
} {
- Internally, SQLite can handle databases up to 2^40 bytes (1 terabyte)
+
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).
+ 2^31 (2 gigabytes). (See the next question for instructions on how
+ to relax this limit under POSIX.)
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.
}
+faq {
+ Are there any ways to increase the maximum database size limit above 2GB?
+} {
+ 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:
+
+
+ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
+
+
+ The resulting library and "sqlite" executable should be able to work
+ with databases as large as 2^41 bytes (2 terabytes).
+}
+
faq {
What is the maximum size of a VARCHAR in SQLite?
} {