dan
dea0a85091
Merge with trunk commit [3e646e3f4c].
...
FossilOrigin-Name: 43463970f5885fb116588695146f2a56cb22804a
2010-04-17 15:45:35 +00:00
dan
6703239d2f
In synchronous=normal mode, do not sync the log after every transaction. In synchronous=full mode, sync the log and add any extra frames required to avoid blast-radius related problems after each transaction.
...
FossilOrigin-Name: 9bc9b6847303d0324543a9ded8dd0473490122d8
2010-04-17 15:42:43 +00:00
drh
3674bfd1b6
Change sqlite3_step() so that it automatically calls sqlite3_reset() instead
...
of returning SQLITE_MISUSE when invoked on a prepared statement that
previously returned any value other than SQLITE_ROW.
FossilOrigin-Name: 3e646e3f4cd0ca288e444561e951cecfdaee2ab5
2010-04-17 12:53:19 +00:00
dan
3de777fd8c
Enhancements to wal-mode locking scheme.
...
FossilOrigin-Name: 8549c286497f3d2cd118be1334fce00d6f8a26c4
2010-04-17 12:31:37 +00:00
dan
97a313554d
Change the log file format to include a small (12 byte) header at the start of the file.
...
FossilOrigin-Name: 9865d14d6041874bc1239ce7a061d5c75f2d33c9
2010-04-16 13:59:31 +00:00
dan
4a4b01dc1c
Fix bug in log recovery (last frame in log was being ignored). Also remove an incorrect assert statement.
...
FossilOrigin-Name: 67d2a89ec2d593a077eb19a6ea2b06cb1c2e9ba8
2010-04-16 11:30:18 +00:00
drh
f391327824
Disable query flattening when the outer query is a compound SELECT and
...
the inner query has a LIMIT clause. Ticket [02a8e81d44].
FossilOrigin-Name: f96782b389b5b97b488dc5814f7082e0393f64cd
2010-04-15 23:24:29 +00:00
dan
4cc6fb6165
Allow writers to write dirty pages to the log mid-transaction in order to free memory.
...
FossilOrigin-Name: ecd828f96909895535d7dc744e5a8530e234e04d
2010-04-15 16:45:34 +00:00
dan
bb2e9c97fc
Merge two leaves on the WAL branch.
...
FossilOrigin-Name: c9ed66cc3994b3b0d67a6c950b552a1a869f2ed2
2010-04-15 13:33:18 +00:00
drh
ed808acd1b
The query planner fix of check-in [33b1f584ef] should have been on the trunk.
...
FossilOrigin-Name: f538d759beda67e042b66181b65bd432488f7650
2010-04-15 13:29:37 +00:00
drh
521a72b1fa
Fix a problem in the result set size estimation logic of the query planner -
...
a problem introduced by the two previous changes.
FossilOrigin-Name: 33b1f584ef712625c4df8e2aefe895fa89f6a795
2010-04-15 12:36:06 +00:00
dan
39c79f587c
Change the way checksums are calculated.
...
FossilOrigin-Name: 84955c2e9ce526c5a3ed479aa09f093a7e37c7d0
2010-04-15 10:58:51 +00:00
drh
ce2f88d95b
Bring over the recent query planner enhancements from the trunk.
...
FossilOrigin-Name: 82969f27e5ea843cb379666d8a02e4a3fddc03b2
2010-04-15 02:37:10 +00:00
drh
ed754ce2cc
Further refinements to table order selection on join query planning.
...
FossilOrigin-Name: defaf0d99a807027f8883bf821b6482025f9f54e
2010-04-15 01:04:54 +00:00
drh
1e0f4a83d6
The query planner uses non-indexable WHERE clause terms to reduce the
...
estimated number of output rows, then uses the estimated number of output
rows as a tie-breaker when choosing table order.
FossilOrigin-Name: b87cb0c2bd9c52a938795a974e101879b81210e3
2010-04-14 19:01:44 +00:00
dan
49320f8568
Add tests and fix bugs in WAL locking mechanism.
...
FossilOrigin-Name: c18077f2465fc34830f11c9832e76be5746eaeea
2010-04-14 18:50:08 +00:00
dan
e264d983d1
Add tests to check inter-process WAL locking.
...
FossilOrigin-Name: 9435f3135849e0d38fde1669201db508561a6308
2010-04-14 18:06:50 +00:00
dan
02bb596649
Improve the logLockRegion() function in log.c.
...
FossilOrigin-Name: 5e9dd3bd8e829376408925fb4cfcd5bb1eb1105f
2010-04-14 15:49:40 +00:00
dan
b9bf16bfde
Fixes for locking issues in WAL mode.
...
FossilOrigin-Name: a9617eff39177250e2f118f25fdd4b3acb8b0478
2010-04-14 11:23:30 +00:00
dan
64d039e512
Add experimental locking scheme.
...
FossilOrigin-Name: 3f958e87c33d667d299b03ffdef58db5dc6363f4
2010-04-13 19:27:31 +00:00
drh
622194c0d2
Fix an uninitialized variable in readDbPage of pager.c.
...
FossilOrigin-Name: f4e1150fed2c520c7c52612cb1019429d78dc32a
2010-04-13 15:30:53 +00:00
dan
f05c86dd73
Remove old code to interpret an argument (no longer used) to "PRAGMA checkpoint".
...
FossilOrigin-Name: 27dc5977c19e717afd65d3805557e38dec7bedcb
2010-04-13 11:56:03 +00:00
dan
80a1526a9a
Fix other problems in the WAL test scripts.
...
FossilOrigin-Name: dcb31181db246dd3f81ce63b144dd0cf95f06ee3
2010-04-13 11:45:31 +00:00
dan
d3f8f94652
Fix test script issues preventing walthread.test from running.
...
FossilOrigin-Name: d90b1dde0702ceb0eae2a3da36733a7e5b1a6b3a
2010-04-13 11:35:01 +00:00
dan
9281bf2a9f
Fix a pager bug introduced by the wal code.
...
FossilOrigin-Name: 4a0b29dc5e573a5d696ede17db5d7acf8d23aa98
2010-04-13 11:18:40 +00:00
dan
835ae8bcdd
Sync wal branch with [012cf101bf].
...
FossilOrigin-Name: 9d690f24f634696f76fa38372461cfa69263e91e
2010-04-13 06:20:45 +00:00
dan
c9206ed56e
Test that the rollback-hook is invoked if a commit-hook implementation returns non-zero (causing a rollback). Remove documentation comment that says otherwise from sqlite.h.in.
...
FossilOrigin-Name: 012cf101bf8be9e39c138786ea5a5039b8131e55
2010-04-13 06:18:02 +00:00
drh
08ede1d08b
Add e_fts3.test to the set of tests excluded from the inmemory_journal
...
exclusion list, since it does simulated OOM errors which trigger I/O errors
and SQLite is unable to recover from I/O errors without a persistent journal.
FossilOrigin-Name: e7e7127f0b0db582274338a9fefc30a0c0be07c3
2010-04-12 20:54:13 +00:00
drh
09c0f6d02d
Recent changes cause the xSync method of the memory journal implementation
...
to be used, so remove the assert(0).
FossilOrigin-Name: 1f2cb9402838373f6370660dfc885013df079895
2010-04-12 19:44:22 +00:00
drh
02927cc1f3
Clear a global variable in e_fts3.test before it is used.
...
FossilOrigin-Name: ae89dfd26b65fb1a3633a4338f5cb5e54a7d2035
2010-04-12 19:43:43 +00:00
drh
63ca1dba52
Remove duplicate secure_delete pragma implemention.
...
FossilOrigin-Name: c15fda145b621fc86402914aa5b015e53590555a
2010-04-12 19:31:59 +00:00
dan
6700d02cce
Add "log.h", which should have been part of the previous commit.
...
FossilOrigin-Name: 8de9f010044fc992b5b45a7bb0da1284b404ecdb
2010-04-12 19:05:58 +00:00
dan
7c24610e64
Import experimental write-ahead-logging code.
...
FossilOrigin-Name: 409d61baeb0a19d1700c973f16c8acef7b8506cd
2010-04-12 19:00:29 +00:00
dan
eada58aa49
Fix a problem where a process in exclusive mode could delete a hot-journal file without rolling it back from within sqlite3_close() or DETACH. This problem was introduced by the previous commit, it is not present in any releases.
...
FossilOrigin-Name: 51a613950824698687c0db83b7884db33d45f7f5
2010-04-12 17:08:44 +00:00
drh
47f18f7294
Reset the simulated device in the test harness to its default
...
configuration whenever it is restarted.
FossilOrigin-Name: 562d20e662da474ea326165730ecfdfcf9b414ee
2010-04-12 14:51:10 +00:00
drh
91781bd72f
Fix issues and clarify the operation of pager_playback_one_page().
...
A block comment in pager.c identifies 13 invariants on the pager subsystem.
Ticket [9d68c883132c8].
FossilOrigin-Name: 0906597698b697ab2993a460f257e326cb58e475
2010-04-10 17:52:57 +00:00
drh
f762593eaa
Add a test case for the OOM-fault corruption issue.
...
Ticket [9d68c883132c8].
FossilOrigin-Name: 0a64a937b583c32c02c83fc669addf79662efea8
2010-04-09 23:05:24 +00:00
drh
05f69dd388
Candidate fix for a pager bug associated with sqlite3PagerMovepage().
...
FossilOrigin-Name: 8c046eb6d16682d5e755624deb4f76f57350b9c9
2010-04-09 15:34:06 +00:00
drh
6498f0bb2e
Avoid unnecessary calls to sqlite3_step() with null prepared statements
...
while parsing the schema.
FossilOrigin-Name: ae04d2d15d3d96f607adb394a631d96cd4cf2c1d
2010-04-09 09:14:05 +00:00
drh
9e48165b07
Fix a typo in a comment. No changes to code.
...
FossilOrigin-Name: 332cb55113a621456c6522830585434146c388e7
2010-04-08 17:35:34 +00:00
drh
f12cde5637
Fix code coverage problems in where.c.
...
FossilOrigin-Name: b04a52824971e8880e4bf0d9862db4eef8b607ab
2010-04-08 17:28:00 +00:00
drh
c71b5f34c9
Additional automatic index tests.
...
FossilOrigin-Name: 99d8e325e9eb8905631b06676206e6412f386d08
2010-04-08 16:30:38 +00:00
drh
7caba669a6
New test cases for automatic indices. New testcase() macros associated
...
with column-used bitmasks.
FossilOrigin-Name: e1aa48ace7e43c3805278120b8228ee597e2cee7
2010-04-08 15:01:44 +00:00
drh
8bd5412b90
Fix the computation of the number of rows in a table during automatic
...
index generation.
FossilOrigin-Name: edeab06a5010c82491a6cc9393cf2a35a7622ac5
2010-04-08 15:00:59 +00:00
drh
67ae0cb231
Fix an integer overflow bug in the automatic index logic. The bug was
...
detected by the testcase() macros added in the previous check-in. Also
add some more testcase() macros, since this issue points up their importance.
FossilOrigin-Name: af97b4881a8f010055cde672634141d7ed6898fc
2010-04-08 14:38:51 +00:00
drh
52ff8ea605
Add testcase() macros to the automatic index logic to insure that boundary
...
cases are tested.
FossilOrigin-Name: 7286547847721b8f5f64bc2e7dc236652b1ae985
2010-04-08 14:15:56 +00:00
drh
9d6caca80d
Make sure F_OK, R_OK, and W_OK are defined in test_demovfs.c. Define them manually
...
if they are not. This is necessary to get the module to compile on some systems.
FossilOrigin-Name: 7c8afc3272fa91e2b5685b009eb674dbc1b5920d
2010-04-08 11:35:18 +00:00
drh
5c56f70199
Merge automatic index changes into the trunk.
...
FossilOrigin-Name: bf7b8d863665870a38f0b2335cc71de856a515b4
2010-04-08 01:16:19 +00:00
drh
0013e72edf
When constructing automatic indices do not include the same column more than
...
once.
FossilOrigin-Name: d067d9f7a9138e026c1018361127e34385928657
2010-04-08 00:40:15 +00:00
drh
5a8aedab2d
Pull over the latest changes from the trunk.
...
FossilOrigin-Name: e388fe8be878c80ef0bfd1699a7268cdb22cb3c6
2010-04-07 20:32:18 +00:00