1b186a9947
Experimental work to allow SQLite to use the native Win32 heap API.
...
FossilOrigin-Name: bf3d0ab53829350637283442f75071fe6d925245
2011-08-24 16:13:57 +00:00
2d1017e47f
Updates to the sqlite3_mem_methods documentation.
...
FossilOrigin-Name: 988998fe7b0a21ed113b67f812e51f357045bef4
2011-08-24 15:18:16 +00:00
88caeac774
Fix some harmless compiler warnings.
...
FossilOrigin-Name: 46f5a68bfa4199a4bd398030bf88bfbb4df3d5ca
2011-08-24 15:12:08 +00:00
796af156c7
Changes to test_quota.c to make quota groups persistent even after files
...
are closed. Files remain a part of the quota group until they are
deleted.
FossilOrigin-Name: 04111ce980df9692b7fe65a36105e7de9627a3bb
2011-08-24 01:25:55 +00:00
8115d5feaa
Simplifications to the SQLITE_PAGECACHE_BLOCKALLOC logic. Reduce the number
...
of difficult-to-reach branches.
FossilOrigin-Name: d5d835fe8352cb2009133246d4ed1cd310803f75
2011-08-23 23:41:40 +00:00
1ee6f74046
If the application-defined openDirectory() function returns SQLITE_CANTOPEN,
...
then silently ignore the error. This allows the chromium sandbox to disallow
opening of directories without causing errors.
FossilOrigin-Name: 880b51150aaed804005f5062b4dd2fa0ffafa147
2011-08-23 20:11:32 +00:00
422faae0ae
Change the way the "crash" VFS (test6.c) handles SQLITE_FCNTL_SIZE_HINT.
...
FossilOrigin-Name: 40dd8a60be0ca79e0d0bf3a2b5a43f13c02b4971
2011-08-23 19:46:02 +00:00
67e10d1fd3
Have the "crash" VFS used by the tcl tests (test6.c) handle SQLITE_FCNTL_SIZE_HINT internally, instead of passing it directly through to the underlying VFS. This is important if the crash VFS is simulating non-default device characteristics such as SQLITE_DEVCAP_SEQUENTIAL or ATOMIC.
...
FossilOrigin-Name: fac8bc8f3450a6ce74c9250acb0608e940ffb54d
2011-08-23 16:41:06 +00:00
1b53d7d75a
Ifdef out routines in pcache1.c that are used only
...
when SQLITE_PAGECACHE_BLOCKALLOC is defined.
FossilOrigin-Name: 0da292da3bc867a5c6e29384f325581ea06bbd20
2011-08-23 13:27:48 +00:00
2dd9b60c35
Merge the PAGECACHE_BLOCKALLOC changes into trunk.
...
FossilOrigin-Name: 768c1846d48a555054f07edeabdae8817a2c0a8e
2011-08-23 12:50:09 +00:00
06199d84e8
When copying a rollback mode database over a WAL database using the backup API, leave the destination database in WAL mode (instead of switching it to rollback mode). Fix for [af95b8c609].
...
FossilOrigin-Name: 35e6ac18e3d030095da57fff87a288939e9be93f
2011-08-23 11:47:06 +00:00
da04ea4f88
Change to test instrumentation of os_unix.c: Regard IO errors that occur within SQLITE_FCNTL_SIZE_HINT requests as benign.
...
FossilOrigin-Name: ca47da2a1f6e6d221470e7f02b129fc21c288d7b
2011-08-23 05:10:39 +00:00
d017ab9922
Remove a branch that is always true.
...
FossilOrigin-Name: a65681926d8acf779ad39be21b74537c21777783
2011-08-23 00:01:58 +00:00
9147c7b0bc
Remove an unreachable branch in the FK code.
...
FossilOrigin-Name: 6c227cc85378fa6041703d6620031c0e0a2db55f
2011-08-22 20:33:12 +00:00
041a0513aa
Modify test cases so that veryquick.test passes with PAGECACHE_BLOCKALLOC defined.
...
FossilOrigin-Name: c61000705b61dc448a838846826d1a5ab5eaca2b
2011-08-22 14:55:54 +00:00
3098dc5c8a
Fix for [b1d3a2e531].
...
FossilOrigin-Name: 3f3acee465a6e390301f9dc588dd1d8e0bd646bd
2011-08-22 09:54:26 +00:00
d2925706a2
Experimental change: If SQLITE_PAGECACHE_BLOCKALLOC is defined, instead of allocating pages one at a time, allocate blocks of between 15 and 63 pages in a single allocation.
...
FossilOrigin-Name: 63597097eedf80080fab0c1978cfd66ecaaa79fa
2011-08-19 18:15:00 +00:00
bd1e50c920
When retrying a write() after an EINTR error on unix, be sure to also
...
rerun the previous lseek(). Ticket [e59bdf6116036a]
FossilOrigin-Name: 21452f3ae6b5882b03c7cc41e661c7b8144cc3df
2011-08-19 14:54:12 +00:00
d5f12cd54d
Ensure that the Tcl "db onecolumn" command returns an empty string if the SELECT statement returns zero rows.
...
FossilOrigin-Name: 928bcaf0f00a408e2f6c1d85dfab214457f52ad5
2011-08-18 17:47:57 +00:00
8e3937ff0d
Fix the stat3 analysis loader to be compatible with sqlite3_db_status().
...
Also fix some OOM issues with the stat3 analysis loader.
FossilOrigin-Name: eaf447ea87b0ff29ae06283204f522fcd005b284
2011-08-18 13:45:23 +00:00
fc0ce2a83e
Fix a bug in the cleanup of stat tables on a DROP TABLE in autovacuum mode.
...
FossilOrigin-Name: 3fe5d54f635f7b27851d256e417f21b91febb871
2011-08-18 02:51:21 +00:00
88ab5b08ad
Fix an error with OOM processing in the ANALYZE logic.
...
FossilOrigin-Name: b26ec79c69f44b55bc4bb11e293f11b3afa3b724
2011-08-18 01:10:35 +00:00
6a3eb4aef3
Properly process x64 DLL exports, which do not contain a leading underscore, in the MSVC makefile.
...
FossilOrigin-Name: d5936324d27a16ce251f56f5813176c82215d901
2011-08-17 07:46:48 +00:00
81c428a0f8
Add vdbesort.c to the MSVC makefile.
...
FossilOrigin-Name: 8eaa2cd3f454711f2275d03831bca6a36a0b2504
2011-08-17 02:19:54 +00:00
9da058bb5c
Use OP_Sort rather than OP_Rewind in order to sort the content of a new
...
index on the CREATE INDEX statement. Add an ALWAYS() to the merge sort
logic to document an unreachable branch.
FossilOrigin-Name: f01766f42342f043bf0cbe1e07224963011f01b7
2011-08-17 00:40:58 +00:00
6825719667
Fix a few harmless compiler warnings. Add SQLITE_ENABLE_STAT3 to the
...
standard compiler warning script.
FossilOrigin-Name: 3d68f9afee02f95103eb1682b8f2362f8d249437
2011-08-16 17:06:21 +00:00
8c2cd5dac5
Allow the sqlite3VdbeJumpHere() routine to accept a negative or zero address
...
if a prior memory allocation error has occurred. The new sqlite_stat3 logic
needs this.
FossilOrigin-Name: 9650d7962804d61f56cac944ff9bb2c7bc111957
2011-08-16 02:07:04 +00:00
461728d3d0
Add the analyze8.test test module for sqlite_stat3.
...
FossilOrigin-Name: 2c83ac89dc5a6017587defb541c9f3731b98892a
2011-08-16 01:15:12 +00:00
ad2148da00
Updated comments on the multiplexor extension. No changes to code.
...
FossilOrigin-Name: 0f42ef697e197d193867c0d6be3c9cf6471488c6
2011-08-15 19:44:30 +00:00
71ec5078c4
Fix an assert() in the merge-sort logic to account for I/O errors.
...
FossilOrigin-Name: c1daa809a17a97610e51f9babd90f36908921245
2011-08-15 15:37:15 +00:00
96e5088cda
New makefile target "sqlite3-debug.c" builds an amalgamation that include
...
appropriate "#line" macros relating the code back to the original source
files.
FossilOrigin-Name: 26f2da24b080bf89e3574bd1a162eb1fead51456
2011-08-15 15:27:20 +00:00
9d71142c9c
When opening a temporary file to use in a merge-sort, pass SQLITE_OPEN_TEMP_JOURNAL instead of SQLITE_OPEN_TEMP_DB. This is a better fit, as merge-sort files are written and read sequentially like journal files.
...
FossilOrigin-Name: bd04756b66e343a7bc6c8bbed9e5cff7b9658d01
2011-08-15 14:41:01 +00:00
50a1c56a2e
Update some test cases to work with sqlite_stat3 instead of sqlite_stat2.
...
FossilOrigin-Name: 2504bcfb0cf14b5ce51db0af1269ac28384714e0
2011-08-15 12:58:23 +00:00
23e7c4de7b
Fix a couple of typos in comments in analyze.c.
...
FossilOrigin-Name: ae31dc67aa0637150f964de31a6da6f5797b462a
2011-08-15 12:02:21 +00:00
4e50c5ec48
Further testing and bug fixing for sqlite_stat3. Added the Index.avgEq
...
field to index statistics. Fixed several problems in the query planner
associated with stat3.
FossilOrigin-Name: 89b2f70884cad0abdf4c66cb64ecddb2820ded74
2011-08-13 19:35:19 +00:00
f404c86ad7
Add the sqlite_stat3.nDLT field. Use an linear congruence PRNG to choose
...
which samples to select from among those with the same nEq field.
FossilOrigin-Name: 1dcd24283e6c1cc638eb9ffac434046447f88769
2011-08-13 15:25:10 +00:00
fdd7f71ef4
Fix the header comment on the implementation of the
...
file_control_sizehint_test TCL command in test1.c.
FossilOrigin-Name: 309198085f255fc1fcc7bf28fd38d016d5a536ab
2011-08-13 10:47:51 +00:00
ade3addfb5
The ANALYZE command picks for 15 samples for sqlite_stat3 with the largest
...
nEq fields, plus 5 other evenly spaced samples.
FossilOrigin-Name: 8225924ea015a0c331b69134139922ec83f989f8
2011-08-13 00:58:05 +00:00
7b14e59bfd
Merge the experimental changes to use a merge-sort when creating an index into the trunk.
...
FossilOrigin-Name: 346a453d1f1d615f1e9e7923a27dad84b8727fb1
2011-08-12 16:47:12 +00:00
a9f39fde23
Update Makefile.in and configure to account for new source file vdbesort.c.
...
FossilOrigin-Name: 69e4b41de22968c565c6575707a73956e3b20ff4
2011-08-12 16:34:42 +00:00
15bf39034a
Merge latest trunk changes into experimental branch.
...
FossilOrigin-Name: 7e515055f219b01dd72df4e27bdcabfa2f9be5c2
2011-08-12 16:30:30 +00:00
e6f7bc6379
Remove an unused parameter from a function in vdbesort.c. Fix some comments and other details in the same file.
...
FossilOrigin-Name: 1a8498d8037a1b93e56951bbdbb76291bd5a4f87
2011-08-12 16:11:43 +00:00
689ab89781
Add the SQLITE_OMIT_MERGE_SORT pre-processor directive. To omit the code in vdbesort.c.
...
FossilOrigin-Name: 4ced2394b10d0a4f86422ff893bcdf3cf32591e3
2011-08-12 15:02:00 +00:00
262765a74e
Add tests to improve coverage of vdbesort.c.
...
FossilOrigin-Name: 87a15917d7d88285054e2a319506dd4a0cac9722
2011-08-12 11:59:57 +00:00
faacf17cc1
Begin a branch that experimentally replaces sqlite_stat2 with a new table
...
called sqlite_stat3 that will hopefully facilitate better query
planning decisions.
FossilOrigin-Name: 52e1d7e8ddd4bb5ef3a9d00fd2d719a8a784f807
2011-08-12 01:51:45 +00:00
90315a2417
Make the openDirectory routine in os_unix.c overrideable so that it can
...
be turned into a harmless no-op for the chromium sandbox.
FossilOrigin-Name: 6b236069e1ea3c99ff0a007a790d4baebda70b13
2011-08-10 01:52:12 +00:00
f6cee7d100
Add command-line utilities "offsets.c" and "extract.c" for use in
...
low-level analyzsis of database files.
FossilOrigin-Name: dfa22ed4387f9526b74d5265503c7c8e9d559903
2011-08-09 18:14:36 +00:00
0059eae367
In os_unix.c, do not open the directory containing the database file when
...
the database file is opened. Instead, wait until time to fsync() the
directory. And do not report an error if the open fails, since some
systems (Ex: AIX and a chromium sandbox) are unable to open and fsync
directories.
FossilOrigin-Name: 713b1b7dc1296e9cee42aeaad8c85528155f721d
2011-08-08 23:48:40 +00:00
036ac7fa90
Allow the unlink() system call to be overridden in os_unix.c.
...
FossilOrigin-Name: 8d1b5c3ac027ac00d57a250aad45230a09645617
2011-08-08 23:18:05 +00:00
bf09093f64
Remove redundant parameter from vdbeSorterInitMerge() in vdbesort.c.
...
FossilOrigin-Name: eec8c0df075d3a54ad71a2854b170f3ed307d068
2011-08-08 19:26:13 +00:00