]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Sat, 4 Jun 2016 21:05:54 +0000 (21:05 +0000)]
Improved comment on cursorOwnsBtShared(). No changes to code.
FossilOrigin-Name:
5e269c2d2667df65592a32d6bc2fa388fd7eb181
drh [Sat, 4 Jun 2016 20:58:35 +0000 (20:58 +0000)]
Fix a C99-ism and a compiler warning for MSVC.
FossilOrigin-Name:
aa53a36ea2eb90cc4939e37e6ad320b4211692fd
drh [Sat, 4 Jun 2016 20:37:10 +0000 (20:37 +0000)]
Change the sqlite3BtreeKeySize() interface into sqlite3BtreeIntegerKey() and
make it only work for table btrees. Change sqlite3BtreeDataSize() into
sqlite3BtreePayloadSize() and make it work for all btrees. Combine
sqlite3BtreeDataFetch() and sqlite3BtreeKeyFetch() into a single
sqlite3BtreePayloadFetch() routine. These changes seem to make the
b-tree interface more rational and they reduce both binary size and
CPU usage.
FossilOrigin-Name:
bef35e18dd19732f7859287b097feeb593e5900f
drh [Sat, 4 Jun 2016 17:12:26 +0000 (17:12 +0000)]
Allocate KeyInfo objects from lookaside if possible.
FossilOrigin-Name:
b411107a3609d53af4e147f01e311b858b78420b
drh [Sat, 4 Jun 2016 16:33:48 +0000 (16:33 +0000)]
Fix up speedtest1.c so that it will compile and run on SQLite versions prior
to 3.6.18 (circa 2009-09-11).
FossilOrigin-Name:
9583c0fb39f357a76e0c99ea03b034aea3e03c75
drh [Sat, 4 Jun 2016 13:57:41 +0000 (13:57 +0000)]
Remove an unreachable branch in the UNIQUE constraint parsing.
FossilOrigin-Name:
313e990c741d7db082f1d9b9f3f4c65fdd91b812
drh [Fri, 3 Jun 2016 18:59:37 +0000 (18:59 +0000)]
The OR optimization is usable on virtual tables with LIKE, REGEXP and/or GLOB
terms in the WHERE clause.
FossilOrigin-Name:
fa3a89fc0b88d5ad7f5c232198847b3483eef611
drh [Fri, 3 Jun 2016 18:44:43 +0000 (18:44 +0000)]
Add support for virtual tables using a WITHOUT ROWID schema. This merge also
includes enhancements to the CSV extension, which is used for testing of
the new WITHOUT ROWID virtual table mechanism.
FossilOrigin-Name:
aa7e9d0cc15c050205b09d5a50f985e4ade571d0
drh [Fri, 3 Jun 2016 18:21:04 +0000 (18:21 +0000)]
Fix a memory leak when a WITHOUT ROWID eponymous virtual table is used.
FossilOrigin-Name:
31b83a7d7e553163eb186fc966a885f237554ec2
drh [Fri, 3 Jun 2016 17:27:14 +0000 (17:27 +0000)]
Disallow access to the rowid column on WITHOUT ROWID virtual tables.
FossilOrigin-Name:
d31c25972bfb6d04caad05534505698776e7e6d5
drh [Fri, 3 Jun 2016 13:35:55 +0000 (13:35 +0000)]
Enhance the sqlite3_load_extension() interface to permit extensions to
return SQLITE_OK_LOAD_PERMANENTLY which will prevents unloading when
the database connection closes.
FossilOrigin-Name:
5908aa4dc59925c414b236b6fd3d3ecd7f3da435
drh [Fri, 3 Jun 2016 01:01:57 +0000 (01:01 +0000)]
Performance optimizations on the CSV virtual table. Disallow WITHOUT ROWID
virtual tables that have an xUpdate method, for now.
FossilOrigin-Name:
3134b3266c36c9d018e8d365ef46ef638c0792f4
drh [Thu, 2 Jun 2016 23:13:21 +0000 (23:13 +0000)]
Add the CSV extension to the test fixture. Fix a memory leak in the CSV
extension. Add test cases for the CSV extension, including one that uses
a WITHOUT ROWID virtual table participating in the OR optimization.
FossilOrigin-Name:
95f483e86e30ae68108904400e18ed41d389446b
drh [Thu, 2 Jun 2016 17:44:24 +0000 (17:44 +0000)]
Add the data= parameter to the CSV virtual table extension.
FossilOrigin-Name:
769191042aa14e6eccdfe2391fc1011171d5c9ad
drh [Thu, 2 Jun 2016 16:22:53 +0000 (16:22 +0000)]
Fix corner cases in the WITHOUT ROWID virtual table logic.
FossilOrigin-Name:
a393bbb972660c1ffcdda923d0f3564ecfcd2f0a
dan [Wed, 1 Jun 2016 10:37:50 +0000 (10:37 +0000)]
Fix an issue preventing RBU vacuum from working with virtual tables.
FossilOrigin-Name:
3bd85fa5a9a489fd505c973e37c33a76c1b0e957
mistachkin [Wed, 1 Jun 2016 05:02:05 +0000 (05:02 +0000)]
Fix compilation issues with the VFS stat extension.
FossilOrigin-Name:
f6e956525b03fa07190e5521edac4758c386cc80
drh [Tue, 31 May 2016 21:18:15 +0000 (21:18 +0000)]
An experimental branch with code that allows virtual tables to be declared
as WITHOUT ROWID tables. This might be useful for virtual tables that model
external data sources that do not have a convenient way of computing a unique
rowid. The current check-in almost works, but there are still serious issues.
FossilOrigin-Name:
49638f180e26477974cacc69b79e0be0a5e18b29
drh [Tue, 31 May 2016 18:44:33 +0000 (18:44 +0000)]
Add the columns=N parameter to the CSV extension.
FossilOrigin-Name:
28ebeadd6a4c9ff2ce9fc86a0f0fe2f6cf94d3ac
drh [Tue, 31 May 2016 18:08:35 +0000 (18:08 +0000)]
Add the testflags parameter to the csv extension.
FossilOrigin-Name:
b93fb2fe0df1b3bea2bc2a4e1528da74ab290593
drh [Tue, 31 May 2016 16:22:48 +0000 (16:22 +0000)]
Add the "csv" virtual table for reading CSV files, as an extension in
the ext/misc/ subfolder.
FossilOrigin-Name:
00d3570c8bb96469c984903e20de589e998d4636
dan [Mon, 30 May 2016 08:28:21 +0000 (08:28 +0000)]
Fix an FTS5 problem (segfault or incorrect query results) with "... MATCH 'x OR y' ORDER BY rank" queries when either token 'x' or 'y' is completely absent from the dataset.
FossilOrigin-Name:
64ca1a835a89fd211078d2cd8f9b649e89be528d
dan [Sat, 28 May 2016 18:53:55 +0000 (18:53 +0000)]
Experimental change to allow virtual tables to take advantage of LIKE, REGEXP and GLOB terms that are part of OR expressions within WHERE clauses.
FossilOrigin-Name:
242507b4ff96bc4c7c7844dbe1c2b8508dbf1d01
drh [Sat, 28 May 2016 17:45:15 +0000 (17:45 +0000)]
Remove an unnecessary malloc from the vfsstat extension.
FossilOrigin-Name:
24f258c2392290168cf34622b89a4a406a3dd853
drh [Sat, 28 May 2016 17:23:08 +0000 (17:23 +0000)]
Enhance the sqlite3_load_extension() interface to permit extensions to
return SQLITE_OK_LOAD_PERMANENTLY which will prevent the extensions from
unloading when the database connection closes.
FossilOrigin-Name:
d3f99a5e8d0486d0917dfe96987c179a6f63b850
drh [Sat, 28 May 2016 15:22:33 +0000 (15:22 +0000)]
Enhance "PRAGMA compile_options" so that it shows the version of the compiler
used to generate the executable, for common compilers.
FossilOrigin-Name:
6a0f200957ea294a2ae06c0b039a10ac838925f2
dan [Sat, 28 May 2016 15:09:35 +0000 (15:09 +0000)]
Update the amalgamation-tarball configure script so that it can use header file "readline/readline.h" with library file "libedit".
FossilOrigin-Name:
cbf72b04bb0650b62336d86b22ef59315ccdc183
drh [Sat, 28 May 2016 14:53:48 +0000 (14:53 +0000)]
Add the vfsstat.c loadable extension - a VFS shim that measures the amount
of I/O, and an eponymous virtual table that is used to extract and view
the measurements.
FossilOrigin-Name:
0987487dd4ebfcf66ddeec8ceca47775216a0887
mistachkin [Sat, 28 May 2016 00:13:21 +0000 (00:13 +0000)]
Clang can define _MSC_VER in some circumstances; therefore, check for Clang first.
FossilOrigin-Name:
3f710bc3617691fa7432a24f1410d4651ca181b6
mistachkin [Fri, 27 May 2016 21:13:43 +0000 (21:13 +0000)]
Check for Clang before GCC.
FossilOrigin-Name:
7c2cd4b05f88a759bdf72d3a249db5984fd7105d
mistachkin [Fri, 27 May 2016 20:30:02 +0000 (20:30 +0000)]
Remove surplus quotation marks from the COMPILER= compile_options setting for Clang.
FossilOrigin-Name:
5c966f200018043f5258eb03e043bb25c7766131
drh [Fri, 27 May 2016 19:34:29 +0000 (19:34 +0000)]
Remove surplus quotation marks from the COMPILER= compile_options setting
for GCC.
FossilOrigin-Name:
664c132dabe4a871d5c39c11b339f871ca3a5d31
mistachkin [Fri, 27 May 2016 18:09:45 +0000 (18:09 +0000)]
Add basic compiler information to the results of 'PRAGMA compile_options'.
FossilOrigin-Name:
d734e2df40d95da74ce0c8dd2da1c14033cad8bb
drh [Fri, 27 May 2016 12:30:20 +0000 (12:30 +0000)]
Improvements to WHERE-clause debug tracing. Show TK_MATCH expressions and
show more details on WhereTerm traces.
FossilOrigin-Name:
71087c12bc75a82f5d1051600a442ef6efc5e899
drh [Fri, 27 May 2016 04:10:47 +0000 (04:10 +0000)]
Fix Lemon so that it actually works with -DYYSTACKDEPTH=0.
FossilOrigin-Name:
a9be4c2d56d08fea2cd1aab20b19092a45ef7620
drh [Fri, 27 May 2016 01:07:18 +0000 (01:07 +0000)]
Fix the Lemon-generated parser so that it compiles with -DYYSTACKDEPTH=0.
It does compile now, but there are subtle issues still.
FossilOrigin-Name:
28d439f816d2fa5263e1c4ddecf3bf1ac2dd6549
drh [Thu, 26 May 2016 20:56:38 +0000 (20:56 +0000)]
Add a new OP_SeekRowid opcode, that combines the functions of OP_MustBeInt
and OP_NotExists. This makes the code slightly smaller and faster.
FossilOrigin-Name:
ffe80a1bfa014943a614fc6993c1749b9bfec4c1
drh [Wed, 25 May 2016 18:53:39 +0000 (18:53 +0000)]
Add the libvers.c tool in the tool/ subdirectory.
FossilOrigin-Name:
2a41f098b2f0523b3d7e6eba6ae91cc0d30752df
drh [Tue, 24 May 2016 18:55:08 +0000 (18:55 +0000)]
Enhance Lemon and the parser template so that it can once again build parsers
that have no unreachable branches.
FossilOrigin-Name:
41fd46e2962ba9a1e1f6867567499d1f6f5b8372
drh [Tue, 24 May 2016 18:50:41 +0000 (18:50 +0000)]
Minor change to the walcrash4.test module so that it works when
SQLITE_DEFAULT_WAL_SYNCHRONOUS is set to something other than 2.
FossilOrigin-Name:
61e239bc4310eff172e1e50d51522ecc75dd997e
dan [Tue, 24 May 2016 16:20:51 +0000 (16:20 +0000)]
Fix an obscure problem with transactions written in "PRAGMA synchronous=full" mode on systems that do not support POWERSAFE_OVERWRITE causing an xSync() call to be omitted if the last frame written by a transaction is aligned to a sector boundary. This means that if a power failure or OS crash occurs very soon after such a transaction is committed, it may be lost following system recovery.
FossilOrigin-Name:
37de3eab67f12ae1ce5bc8d5e541c64fc6b1fd80
drh [Tue, 24 May 2016 00:40:54 +0000 (00:40 +0000)]
Improvements to the initialization of the push-down automoton for the
Lemon-generated parser. Smaller and faster.
FossilOrigin-Name:
3b28b68e232060f8b2fe2fe6fa478280da2006ff
drh [Mon, 23 May 2016 21:56:24 +0000 (21:56 +0000)]
Use a pointer to the top of the stack rather than an index into the stack
in the Lemon-generated parser template, for about 6.6% parser performance gain.
FossilOrigin-Name:
3c2a770549d5bb65fcd6cc684e0a0ae6d641ac68
drh [Mon, 23 May 2016 19:02:58 +0000 (19:02 +0000)]
Avoid a minor error message when running RTREE without an sqlite_stat1 table.
FossilOrigin-Name:
276e92f5b4c1ee49eabb738b24d73d7af90fb13c
drh [Mon, 23 May 2016 18:27:07 +0000 (18:27 +0000)]
Fix the rtreeG.test test case.
FossilOrigin-Name:
9589e9377118efc356c73ea1aab2d7e6c2f7fc36
drh [Mon, 23 May 2016 18:12:04 +0000 (18:12 +0000)]
Fix RTREE so that it does not run queries against the sqlite_stat1 if that
table does not exist.
FossilOrigin-Name:
48526a2fe5373e3d19e8b813cc8a342d6b7c9c3d
drh [Mon, 23 May 2016 18:06:51 +0000 (18:06 +0000)]
Remove an extra "finish_test" from the end of rtreeC.test.
FossilOrigin-Name:
bfbb6dd84b5e1335e1eae857a03fa33a71fd67a5
dan [Mon, 23 May 2016 16:16:13 +0000 (16:16 +0000)]
Improve the error messages generated by the rtree module when a constraint fails.
FossilOrigin-Name:
3ad2531efb64b7c53b777ddf3681203217052b32
drh [Mon, 23 May 2016 16:15:02 +0000 (16:15 +0000)]
Lemon enhancement: avoid unnecessary reduce actions that convert one
non-terminal into another but have no side effects.
FossilOrigin-Name:
a86e782ad1aa6f5a8b2c54f9dcf0fa61960843f3
drh [Mon, 23 May 2016 14:24:31 +0000 (14:24 +0000)]
Fix comment typos and improve clarity of presention in Lemon. The output
should be identical.
FossilOrigin-Name:
b91a5b8297756289d45c8fce0d3399c253517eb0
drh [Mon, 23 May 2016 00:10:58 +0000 (00:10 +0000)]
Update the configure script with additional hints on the location of
tclConfig.sh, hints needed by the latest versions of Xcode.
FossilOrigin-Name:
90411a28168f6dacf08242a25bed7d6269041417
drh [Sat, 21 May 2016 23:25:29 +0000 (23:25 +0000)]
More tweaks to improve the performance of the insert logic, slightly.
FossilOrigin-Name:
dec1307581216e01ad508ffe4455b957e3356654
drh [Sat, 21 May 2016 20:03:42 +0000 (20:03 +0000)]
Simplify the sqlite3BtreeInsert() interface by gathering the five arguments
describing the content to be inserted into the new BtreePayload structure, and
thus reducing the number of parameters from eight to four.
FossilOrigin-Name:
55f348cdd24c7812ea4b63345514764b69f64dc8
drh [Sat, 21 May 2016 19:10:21 +0000 (19:10 +0000)]
Remove some unused legacy code from the btree insert logic.
FossilOrigin-Name:
2ce1166717ac3c0cec37b2f6d70d8359fbaefc71
drh [Sat, 21 May 2016 12:29:04 +0000 (12:29 +0000)]
Yet another minor size reduction and performance increase in the b-tree
insert logic.
FossilOrigin-Name:
1dbaf7a119edc5150a5d4be1b72f652a574e5bc5
drh [Sat, 21 May 2016 11:23:26 +0000 (11:23 +0000)]
Small size reduction and performance increase in the sqlite3BtreeInsert()
logic.
FossilOrigin-Name:
656aa1ecf5129ae43c56a990e95038b5d8cbdcee
drh [Sat, 21 May 2016 00:45:54 +0000 (00:45 +0000)]
Add the shell-script used for routine performance testing.
FossilOrigin-Name:
8e366f18f5bbd594390e7b091083e99639de324e
drh [Fri, 20 May 2016 23:51:14 +0000 (23:51 +0000)]
Add a simple TCL script for summing cachegrind information for each VDBE
opcdoe.
FossilOrigin-Name:
96cf821b6a69e2e8df33271b7bb674bd12a1ef7b
drh [Fri, 20 May 2016 21:40:11 +0000 (21:40 +0000)]
Another optimization on the OP_Column opcode.
FossilOrigin-Name:
1765672c2599eb03d39c52cd2dc32ea1e5ee069e
mistachkin [Fri, 20 May 2016 20:58:30 +0000 (20:58 +0000)]
Fix typo in comment.
FossilOrigin-Name:
9db8f2147339ba519c4ec32e34068e9f4a25e099
drh [Fri, 20 May 2016 19:51:28 +0000 (19:51 +0000)]
Slight performance improvement in the OP_Column opcode.
FossilOrigin-Name:
5c157474391f90f24e8867c77fbc6564c7955ecc
drh [Fri, 20 May 2016 18:09:01 +0000 (18:09 +0000)]
Remove the sqlite3PagerClearCache() routine, which does not accomplish anything
useful.
FossilOrigin-Name:
f250166bb3c1b0c58e703b334825cf6210758fda
drh [Fri, 20 May 2016 15:53:47 +0000 (15:53 +0000)]
Performance optimization and size reduction on the freeP4() routine.
FossilOrigin-Name:
4dc56e8684e0c74fb311c7f0ef1c367da8c7bf70
drh [Fri, 20 May 2016 15:24:14 +0000 (15:24 +0000)]
Increase the version number to 3.14.0 since we are already making significant
code changes.
FossilOrigin-Name:
1a0d05765fa2e69ccd4c98782cf9f5c5b2897719
drh [Fri, 20 May 2016 15:15:07 +0000 (15:15 +0000)]
Use sqlite3VdbeAddOp0() to code OP_Expire, to save a few bytes.
FossilOrigin-Name:
3d55d24dcb27f07d1e645738ee4707e4df923036
drh [Fri, 20 May 2016 14:54:54 +0000 (14:54 +0000)]
Optimizations to link list merge sort code in vdbesort.c, pcache.c, and
rowset.c. Resulting binaries are 10 bytes smaller and use 0.03% fewer CPU
cycles.
FossilOrigin-Name:
9033afbb31b28a8ad6856ac1f773d8e83bc9ec1c
drh [Fri, 20 May 2016 14:11:37 +0000 (14:11 +0000)]
For queries with both ORDER BY and LIMIT, if the rows of the inner loop are
emitted in ORDER BY order and the LIMIT has been reached, then optimize by
exiting the inner loop and continuing with the next cycle of the first outer
loop.
FossilOrigin-Name:
559733b09e9630fac9d9318a7ecbaba9134e9160
drh [Fri, 20 May 2016 13:44:58 +0000 (13:44 +0000)]
Set the NULLEQ flag on the sequence counter comparison in the ORDER BY LIMIT
optimization, to avoid coverage complaints about not testing the NULL case.
FossilOrigin-Name:
ed1b30dc932a7c03e173b130c5f55f9989c7e0b4
drh [Fri, 20 May 2016 12:22:16 +0000 (12:22 +0000)]
Autoconf configure.ac adjustment to try to get it to look for both editline
and readline automatically.
FossilOrigin-Name:
645bd696dfd86d8c93080f6ebfddbc9639ec088b
drh [Fri, 20 May 2016 00:21:42 +0000 (00:21 +0000)]
A few simple test cases for the ORDER BY LIMIT optimization.
FossilOrigin-Name:
08849eab0f6ef29eaf6d2ce9c692de9b953dbd27
drh [Thu, 19 May 2016 22:40:04 +0000 (22:40 +0000)]
Appears to work now. Needs test cases, more comments, and code optimization.
FossilOrigin-Name:
990fe50c9182f74c9b54a12602c4c30d891273e6
drh [Thu, 19 May 2016 22:13:37 +0000 (22:13 +0000)]
In a query with both ORDER BY and LIMIT, if the inner loop satisfies the
ORDER BY then try to cut short each invocation of the inner loop once the
LIMIT has been satisfied. This check-in is a partial implementation only.
FossilOrigin-Name:
852d1eda6ecca1171f6ed800b06f5b4854672002
drh [Thu, 19 May 2016 19:31:30 +0000 (19:31 +0000)]
Fixup comments on wctrlFlags value definitions.
FossilOrigin-Name:
58b516e8c0b00a41bc0364eab267bc2ecb9efeff
drh [Thu, 19 May 2016 18:56:33 +0000 (18:56 +0000)]
Clean up the WHERE_* macros used for the wctrlFlags parameter on the
sqlite3WhereBegin() interface, freeing up some bits to be used for other things.
FossilOrigin-Name:
d01305841da94b2d47e32744802f69525bf590df
drh [Thu, 19 May 2016 17:51:19 +0000 (17:51 +0000)]
Optimization marks in vdbe.c. No logic changes.
FossilOrigin-Name:
cf2737415aff7de7e133da174b645324c99d5758
drh [Thu, 19 May 2016 16:58:42 +0000 (16:58 +0000)]
Performance improvement in the OP_Column opcode.
FossilOrigin-Name:
4737cadc414c5f6d256fcceacb19d80d66a8c8e7
dan [Thu, 19 May 2016 16:21:30 +0000 (16:21 +0000)]
Add test cases to test some fts3/4 edge case behaviour surrounding the '*' character.
FossilOrigin-Name:
1f577e1f08159aeaaf19a7020d9004dd6103d57b
drh [Thu, 19 May 2016 11:12:43 +0000 (11:12 +0000)]
Small size reduction and performance improvement in the OP_Column opcode.
FossilOrigin-Name:
0d7730611be974162d9a064a041957d04d55b6d3
drh [Wed, 18 May 2016 21:03:27 +0000 (21:03 +0000)]
Add the "scrub" utility program that simultaneously backs-up a live database
and erases all deleted content.
FossilOrigin-Name:
c981ab2a4771f8c5e95e2e85e37a02a4bd0e36ee
drh [Wed, 18 May 2016 21:01:27 +0000 (21:01 +0000)]
Omit the unnecessary WHERE_REOPEN_IDX flag in the WHERE interface.
FossilOrigin-Name:
915416d15f43c4e1d3afa8121bb6fa09f9f67e30
drh [Wed, 18 May 2016 10:57:30 +0000 (10:57 +0000)]
drh [Tue, 17 May 2016 21:17:51 +0000 (21:17 +0000)]
Enhance the scrub utility program so that it does a FULL checkpoint prior to
starting the backup, to ensure that the database file content matches what needs
to be backed up without having to look at the WAL file.
FossilOrigin-Name:
ab1c5ce50f139070d7a322f43132a93c8af2ed68
drh [Tue, 17 May 2016 17:11:21 +0000 (17:11 +0000)]
Merge the latest changes from trunk.
FossilOrigin-Name:
5021dfe1f3f723a5938d547a0308f1d63103702d
dan [Mon, 16 May 2016 14:35:15 +0000 (14:35 +0000)]
Do not run snapshot_fault.test as part of the inmemory_journal permutation.
FossilOrigin-Name:
995c084bde44e678facc5f5d95a2335ce61e57b0
drh [Mon, 16 May 2016 11:55:09 +0000 (11:55 +0000)]
Disable shell.exe test cases for UTF8 filenames as they do not work on MinGW.
FossilOrigin-Name:
386bcbba8ed733ee84958e6bd6e9d33c150e6c18
drh [Fri, 13 May 2016 17:22:33 +0000 (17:22 +0000)]
Improvements to a comment in the pcache.c file. No changes to code.
FossilOrigin-Name:
b369980f0c4550a9034833caa2c7c85d6030f5ff
drh [Fri, 13 May 2016 15:22:06 +0000 (15:22 +0000)]
Remove the unused PGHDR_NEED_READ flag. Add invariant checking (during
SQLITE_DEBUG builds only) for the PgHdr object.
FossilOrigin-Name:
771c5411e9ebcad00fb4b97556b519488284b87b
drh [Fri, 13 May 2016 12:12:38 +0000 (12:12 +0000)]
Clarification of the pagerFlushOnCommit() logic.
FossilOrigin-Name:
3401d9dcdbec390564574e8d2972c944c204e025
drh [Fri, 13 May 2016 11:50:00 +0000 (11:50 +0000)]
Fix pager_end_transaction() to ensure that a ROLLBACK does not clobber
unwritten pages in a TEMP file pcache.
FossilOrigin-Name:
9495d33879221c1821331dc72c61a6a3d182f526
drh [Fri, 13 May 2016 04:24:25 +0000 (04:24 +0000)]
Additional debugging and tracing logic for pcache.c, turned off by default
using an "#if 0".
FossilOrigin-Name:
32a62e3bd46cf58586617d3f8b1a971c91df205e
drh [Thu, 12 May 2016 19:17:09 +0000 (19:17 +0000)]
Disable ALWAYS and NEVER when compiled with SQLITE_MUTATION_TEST.
FossilOrigin-Name:
24d9fbc1d0f99b90577ecd6edcd3bc1abc76633f
drh [Thu, 12 May 2016 19:05:35 +0000 (19:05 +0000)]
Simplification of the sqlite3FaultSim() call inside of
sqlite3PagerCommitPhaseOne().
FossilOrigin-Name:
1b0f4cc362cda1dc175aa363ae4e612b7d1164c3
drh [Thu, 12 May 2016 18:38:45 +0000 (18:38 +0000)]
Add an assert in pager.c to confirm that pPager->tempFile is always true
for in-memory databases.
FossilOrigin-Name:
3fd71092063bf1d30e03cf2497ea9c57b3ec82eb
dan [Thu, 12 May 2016 17:06:04 +0000 (17:06 +0000)]
Add extra OPTIMIZATION-IF-FALSE comments where required to pcache.c.
FossilOrigin-Name:
9d55b8f541de43deb82d460d32005fd62f5430b2
drh [Thu, 12 May 2016 12:08:48 +0000 (12:08 +0000)]
For in-memory databases, it does not matter if pcache entries are marked
"clean" or "writable".
FossilOrigin-Name:
06c1e27ca868f247f8c27b03eb19aac004f28650
drh [Thu, 12 May 2016 12:01:20 +0000 (12:01 +0000)]
Remove an unnecessary call to sqlite3PcacheMakeClean() inside of the ROLLBACK
logic.
FossilOrigin-Name:
0dc50d9915cd88916229ca5c3834de82fa16f017
dan [Thu, 12 May 2016 09:48:23 +0000 (09:48 +0000)]
Add a missing OPTIMIZATION-IF-FALSE comment to pcache.c.
FossilOrigin-Name:
bc202e5b418d5a57bfc766883c4417c94829d96e
drh [Wed, 11 May 2016 23:54:14 +0000 (23:54 +0000)]
For in-memory databases, it does not matter if pcache entries are marked
"clean" or "writable".
FossilOrigin-Name:
ad601c7962a60a11699cf31f1faee09b95d5c710
dan [Wed, 11 May 2016 20:03:23 +0000 (20:03 +0000)]
Remove a redundant condition from pcache.c. Add an OPTIMIZATION-IF-TRUE comment to another condition that requires it.
FossilOrigin-Name:
3bfd2621d13b4f842f3af6d35519653f4eb8cad7
dan [Wed, 11 May 2016 15:41:15 +0000 (15:41 +0000)]
Remove some a small amount of redundant code related to PCache.pSynced from pcache.c.
FossilOrigin-Name:
9cc8cad78fdfe044ad6726ebfe6909c1e242fa55