]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
9 years agoFurther minor performance improvements and code-size reductions related to fts5 colum... fts5-perf
dan [Tue, 26 Jan 2016 20:08:50 +0000 (20:08 +0000)] 
Further minor performance improvements and code-size reductions related to fts5 column filters on detail=col tables.

FossilOrigin-Name: b4ac61aeee976296e7719949cd4fb496147a29e8

9 years agoImprove the performance of fts5 column filters on detail=col tables.
dan [Tue, 26 Jan 2016 19:30:49 +0000 (19:30 +0000)] 
Improve the performance of fts5 column filters on detail=col tables.

FossilOrigin-Name: 249a2d070c34bf884a04cb248b9691e239f2871c

9 years agoEnhance fts5txt2db.tcl, a script used to generate fts5/fts4 databases for performance...
dan [Tue, 26 Jan 2016 17:08:22 +0000 (17:08 +0000)] 
Enhance fts5txt2db.tcl, a script used to generate fts5/fts4 databases for performance testing.

FossilOrigin-Name: c646e40350e5aa91abcf52de61fb31275bad38f9

9 years agoFix an fts5 problem with using both xPhraseFirst() and xPhraseFirstColumn() within...
dan [Sat, 23 Jan 2016 18:51:59 +0000 (18:51 +0000)] 
Fix an fts5 problem with using both xPhraseFirst() and xPhraseFirstColumn() within a single statement in detail=col mode.

FossilOrigin-Name: 72d53699bf0dcdb9d2a22e229989d7435f061399

9 years agoMerge trunk changes (including fixes for warnings in fts5) with this branch.
dan [Sat, 23 Jan 2016 16:20:16 +0000 (16:20 +0000)] 
Merge trunk changes (including fixes for warnings in fts5) with this branch.

FossilOrigin-Name: ceccc9ad788fb4da9120915741995b9f088f85ff

9 years agoFix some signed/unsigned comparison compiler warnings in fts5.
dan [Sat, 23 Jan 2016 15:57:06 +0000 (15:57 +0000)] 
Fix some signed/unsigned comparison compiler warnings in fts5.

FossilOrigin-Name: 3be336aa893f9eb0837d7d66c83bab1489792b9a

9 years agoFix a problem involving detail=col and column filters.
dan [Sat, 23 Jan 2016 14:45:36 +0000 (14:45 +0000)] 
Fix a problem involving detail=col and column filters.

FossilOrigin-Name: 7558a0ad2276e91f2faced8ea405d9fdb4fa0c6e

9 years agoRemove an assert() that can be false if compiled with SQLITE_USE_ALLOCA.
drh [Sat, 23 Jan 2016 14:05:27 +0000 (14:05 +0000)] 
Remove an assert() that can be false if compiled with SQLITE_USE_ALLOCA.

FossilOrigin-Name: f0a551edf87ef061deae34d88b02c3b484ae9adc

9 years agoMore work on the MSVC build.
mistachkin [Sat, 23 Jan 2016 00:07:51 +0000 (00:07 +0000)] 
More work on the MSVC build.

FossilOrigin-Name: a79c46bc61a35edbaf6112c26e8052314b0eb16a

9 years agoIn the TCL interface, if a database connection object was opened with
drh [Fri, 22 Jan 2016 23:17:51 +0000 (23:17 +0000)] 
In the TCL interface, if a database connection object was opened with
the -uri 1 option, then also honor URI filenames for the "backup" and
"restore" commands.

FossilOrigin-Name: a1c8116ced62d81f3f5ca26bbe0877e829d4cc56

9 years agoMore MSVC makefile cleanup.
mistachkin [Fri, 22 Jan 2016 22:16:50 +0000 (22:16 +0000)] 
More MSVC makefile cleanup.

FossilOrigin-Name: df22556fd75997111e52f96572da8379dfe948be

9 years agoExperimental performance enhancements for fts5.
dan [Fri, 22 Jan 2016 19:48:34 +0000 (19:48 +0000)] 
Experimental performance enhancements for fts5.

FossilOrigin-Name: b5a57b812fd6a734cf2a342bf0b730ae18912d73

9 years agoReenable the xCurrentTime and xGetLastError methods on the unix VFSes as long
drh [Fri, 22 Jan 2016 19:44:03 +0000 (19:44 +0000)] 
Reenable the xCurrentTime and xGetLastError methods on the unix VFSes as long
as SQLITE_OMIT_DEPRECATED is not defined.

FossilOrigin-Name: c11c85fdb6514cae54bb44945cc197dcaba72307

9 years agoAdd the sqlite3TokenInit() utility function.
drh [Fri, 22 Jan 2016 17:48:09 +0000 (17:48 +0000)] 
Add the sqlite3TokenInit() utility function.

FossilOrigin-Name: 7323175337b7ba85ac932ca892b28860f6a5b688

9 years agoHave the dbstat module dequote any argument passed to the CREATE VIRTUAL TABLE statem...
dan [Fri, 22 Jan 2016 15:44:07 +0000 (15:44 +0000)] 
Have the dbstat module dequote any argument passed to the CREATE VIRTUAL TABLE statement before attempting to match it against the names of attached databases.

FossilOrigin-Name: e60461e984b8df09256bb0d733dbfae52568a145

9 years agoEnable FTS4 when building the shell with the MSVC makefile.
mistachkin [Fri, 22 Jan 2016 04:22:36 +0000 (04:22 +0000)] 
Enable FTS4 when building the shell with the MSVC makefile.

FossilOrigin-Name: e4c07df557cd50786b05eecf011bf94708e6e31b

9 years agoFurther refinements to the MSVC makefile.
mistachkin [Fri, 22 Jan 2016 03:54:36 +0000 (03:54 +0000)] 
Further refinements to the MSVC makefile.

FossilOrigin-Name: 67625b963a6f5a0c6dff1a04a323e693569c2d94

9 years agoMSVC makefile enhancements for use with the Windows 10 SDK.
mistachkin [Fri, 22 Jan 2016 01:25:15 +0000 (01:25 +0000)] 
MSVC makefile enhancements for use with the Windows 10 SDK.

FossilOrigin-Name: ac2e9d3de54d299f92fc35927b6df6d3aaa2dc59

9 years agoFix typo in 'Makefile.in'.
mistachkin [Thu, 21 Jan 2016 18:56:10 +0000 (18:56 +0000)] 
Fix typo in 'Makefile.in'.

FossilOrigin-Name: 29a51c6dcc0ef7cab51aba0024e9c5bec89c6973

9 years agoImproved comments on the FORDELETE hint. No logic changes.
drh [Thu, 21 Jan 2016 15:55:37 +0000 (15:55 +0000)] 
Improved comments on the FORDELETE hint.  No logic changes.

FossilOrigin-Name: a3cec529f0238e4ca1196fec420f2de80d28db78

9 years agoAdd 'rbu' to the clean targets.
mistachkin [Wed, 20 Jan 2016 18:47:59 +0000 (18:47 +0000)] 
Add 'rbu' to the clean targets.

FossilOrigin-Name: f60f025027ab3acdbc97701f81ff9c11c8463022

9 years agoAdd a -detail option to the loadfts5.tcl script. For creating tables with the detail...
dan [Wed, 20 Jan 2016 16:36:10 +0000 (16:36 +0000)] 
Add a -detail option to the loadfts5.tcl script. For creating tables with the detail= option set.

FossilOrigin-Name: 81e830e21f81b6428209afa0b8f42f2fd9bd7aab

9 years agoFix a problem in autoconf/configure.ac causing --enable-readline to fail if libedit...
dan [Wed, 20 Jan 2016 15:19:56 +0000 (15:19 +0000)] 
Fix a problem in autoconf/configure.ac causing --enable-readline to fail if libedit was not present.

FossilOrigin-Name: e8adeb64d4e463772feb58dbd6f00715b92e735c

9 years agoCase folding in the LIKE operator should look at all bits of the character,
drh [Wed, 20 Jan 2016 14:22:41 +0000 (14:22 +0000)] 
Case folding in the LIKE operator should look at all bits of the character,
not just the lower 8 bits.  Fix for ticket [80369eddd5c94].  This is a
back-out of check-in [0a99a8c4facf] with a testcase added.

FossilOrigin-Name: 204432ee72fda8e82d244c4aa18de7ec4811b8e1

9 years agoImprove performance of sqlite3VtabImportErrmsg().
dan [Wed, 20 Jan 2016 08:47:55 +0000 (08:47 +0000)] 
Improve performance of sqlite3VtabImportErrmsg().

FossilOrigin-Name: 18d61c8e40ed1466b6a3a2f53bf0eeb09687c20e

9 years agoPerformance improvement in sqlite3DbMallocRaw().
drh [Wed, 20 Jan 2016 03:36:32 +0000 (03:36 +0000)] 
Performance improvement in sqlite3DbMallocRaw().

FossilOrigin-Name: ff8eadbed5004ab03438f737492387dee6b9750a

9 years agoSuppress the display of the P4 operand in EXPLAIN output when an opcode
drh [Wed, 20 Jan 2016 02:36:12 +0000 (02:36 +0000)] 
Suppress the display of the P4 operand in EXPLAIN output when an opcode
has been converted into a No-op.

FossilOrigin-Name: 9f8297f862a110ded686d091854fae20c6bc393c

9 years agoRemove an unnecessary memset() from the symbol name resolver.
drh [Wed, 20 Jan 2016 02:21:50 +0000 (02:21 +0000)] 
Remove an unnecessary memset() from the symbol name resolver.

FossilOrigin-Name: da527ddae06460ab4b706cdb871de2188ebaf5ac

9 years agoRemove an unnecessary memset() for a small size reduction and speed improvement.
drh [Wed, 20 Jan 2016 02:01:02 +0000 (02:01 +0000)] 
Remove an unnecessary memset() for a small size reduction and speed improvement.

FossilOrigin-Name: 730d7efb6fef54ed7c1f4ae27e3b55778ea6ff01

9 years agoDuring compilation, transfer the azVar[0..nzVar-1] array from Parse to Vdbe
drh [Wed, 20 Jan 2016 01:48:25 +0000 (01:48 +0000)] 
During compilation, transfer the azVar[0..nzVar-1] array from Parse to Vdbe
rather than copying it.  Smaller and faster code.

FossilOrigin-Name: 80dd495f378614e4eca72e71e43061b1b94ee450

9 years agoVery small simplification to the btree balancer.
drh [Wed, 20 Jan 2016 01:32:00 +0000 (01:32 +0000)] 
Very small simplification to the btree balancer.

FossilOrigin-Name: f421adf54c9db91ba6ca64a8ba3751680e47924a

9 years agoFix an incorrect VFS version number check in the threadtest3.c test program.
drh [Tue, 19 Jan 2016 21:36:26 +0000 (21:36 +0000)] 
Fix an incorrect VFS version number check in the threadtest3.c test program.

FossilOrigin-Name: 5bf6442bec83977006bc5049adcdbd4dd39369fe

9 years agoFix two harmless compiler warnings about comparisons of dangling pointers.
drh [Tue, 19 Jan 2016 17:54:21 +0000 (17:54 +0000)] 
Fix two harmless compiler warnings about comparisons of dangling pointers.

FossilOrigin-Name: 86944f193f1f06b64471953bb5713ecea7f3d803

9 years agoAdd further fts5 tests. 100% code coverage is finally restored.
dan [Tue, 19 Jan 2016 16:06:23 +0000 (16:06 +0000)] 
Add further fts5 tests. 100% code coverage is finally restored.

FossilOrigin-Name: b914ece0d146cfc8adba4dc4e8633e14f174d6ea

9 years agoAdd tests for fts5. Fix a crash that can occur in fts5 if the database content is...
dan [Mon, 18 Jan 2016 17:48:28 +0000 (17:48 +0000)] 
Add tests for fts5. Fix a crash that can occur in fts5 if the database content is corrupted.

FossilOrigin-Name: acaf426449bf6fd3140fd63141750ff69d1119a5

9 years agoAvoid unnecessary calls to memset() for a small performance improvement.
drh [Mon, 18 Jan 2016 13:18:54 +0000 (13:18 +0000)] 
Avoid unnecessary calls to memset() for a small performance improvement.

FossilOrigin-Name: 9e8c23acf74944a165c733682a956948b15bd401

9 years agoAdd a debugging function to print human-readable versions of fts5 detail=none leaf...
dan [Mon, 18 Jan 2016 09:08:56 +0000 (09:08 +0000)] 
Add a debugging function to print human-readable versions of fts5 detail=none leaf pages.

FossilOrigin-Name: 8358af3658d888516cdef5f8c8d89e9bdee53f91

9 years agoSimplification of the VDBE bytecode for incremental blob I/O.
drh [Mon, 18 Jan 2016 00:46:11 +0000 (00:46 +0000)] 
Simplification of the VDBE bytecode for incremental blob I/O.

FossilOrigin-Name: d23849f64a110e336f26282bf2b961a2a2372468

9 years agoFix a problem with SQLITE_TEST_REALLOC_STRESS.
drh [Mon, 18 Jan 2016 00:20:26 +0000 (00:20 +0000)] 
Fix a problem with SQLITE_TEST_REALLOC_STRESS.

FossilOrigin-Name: 0aaf3febb00f622c5ef0853b2491d69f7ca7a21e

9 years agoAdd extra tests to cover untested branches in fts5.
dan [Sat, 16 Jan 2016 21:06:41 +0000 (21:06 +0000)] 
Add extra tests to cover untested branches in fts5.

FossilOrigin-Name: 61deab043dcea860070dba6b02601a7de627fff1

9 years agoImprovements to the way sqlite3VdbeAddOpList() works, resulting in a slightly
drh [Sat, 16 Jan 2016 20:50:21 +0000 (20:50 +0000)] 
Improvements to the way sqlite3VdbeAddOpList() works, resulting in a slightly
smaller and faster binary.

FossilOrigin-Name: 88ceb588bcdb3ca86d0c58cfdeb61b5fe070872f

9 years agoAdd further tests for fts5. Fix some problems with detail=col mode and auxiliary...
dan [Sat, 16 Jan 2016 18:58:51 +0000 (18:58 +0000)] 
Add further tests for fts5. Fix some problems with detail=col mode and auxiliary functions.

FossilOrigin-Name: de77d6026e8035c505a704e7b8cfe5af6579d35f

9 years agoUse sqlite3VdbeAddOp4() rather than a separate sqlite3VdbeChangeP4() call, for
drh [Sat, 16 Jan 2016 15:12:35 +0000 (15:12 +0000)] 
Use sqlite3VdbeAddOp4() rather than a separate sqlite3VdbeChangeP4() call, for
a slightly smaller and faster binary.

FossilOrigin-Name: a4258cd4613c55acacb5c7b61faa3de7eb0759d2

9 years agoFix a potential use-after-free problem when compiling with SQLITE_HAS_CODEC.
drh [Sat, 16 Jan 2016 03:16:19 +0000 (03:16 +0000)] 
Fix a potential use-after-free problem when compiling with SQLITE_HAS_CODEC.

FossilOrigin-Name: 653ea15ad8e23b333e234eb5dde7b80134db2baf

9 years agoRemove an unnecessary memset().
drh [Fri, 15 Jan 2016 21:55:46 +0000 (21:55 +0000)] 
Remove an unnecessary memset().

FossilOrigin-Name: 689421a9f73ceeab9786840a2d6ee008124d1f25

9 years agoRationalize some code in fts5_storage.c. Add tests to cover recently added branches...
dan [Fri, 15 Jan 2016 19:54:47 +0000 (19:54 +0000)] 
Rationalize some code in fts5_storage.c. Add tests to cover recently added branches in fts5.

FossilOrigin-Name: 3b72df405ac9b3a71144f45317d32e25f0084c4b

9 years agoRemove unnecessary de-initialization of the Parse object.
drh [Fri, 15 Jan 2016 16:11:58 +0000 (16:11 +0000)] 
Remove unnecessary de-initialization of the Parse object.

FossilOrigin-Name: 75ab30c5fcb51e556342dc3112f9acf122f79947

9 years agoWork toward making the schema parsing logic simplier and more compact.
drh [Fri, 15 Jan 2016 15:06:41 +0000 (15:06 +0000)] 
Work toward making the schema parsing logic simplier and more compact.

FossilOrigin-Name: c52ca2c0662bb30ab34574f933429512655b19ff

9 years agoFix a couple C99-isms in FTS5 that cause compile errors on MSVC.
mistachkin [Fri, 15 Jan 2016 05:39:55 +0000 (05:39 +0000)] 
Fix a couple C99-isms in FTS5 that cause compile errors on MSVC.

FossilOrigin-Name: 584848d4396d7755027fab377c97e40fbcc90d21

9 years agoCombine the xFunc and xStep pointers of the FuncDef object into a single
drh [Thu, 14 Jan 2016 22:19:58 +0000 (22:19 +0000)] 
Combine the xFunc and xStep pointers of the FuncDef object into a single
pointer xSFunc.

FossilOrigin-Name: 0d1b3d7d3ca66cb0b97493f1aeade1703af3c9f4

9 years agoAdd a test to verify that the fts3 and fts5 "unicode61" tokenizers are byte for byte...
dan [Thu, 14 Jan 2016 20:05:59 +0000 (20:05 +0000)] 
Add a test to verify that the fts3 and fts5 "unicode61" tokenizers are byte for byte compatible.

FossilOrigin-Name: 8ec8314354edc9d6f7d1c8a6370fd984a552a52f

9 years agoSimplification to the ISO8610 parser in the imnplementation of date/time
drh [Thu, 14 Jan 2016 19:32:46 +0000 (19:32 +0000)] 
Simplification to the ISO8610 parser in the imnplementation of date/time
functions.

FossilOrigin-Name: b9159f42a517a95ae52464c96431708c00b7bb36

9 years agoMinor adjustments to the MSVC makefile.
mistachkin [Thu, 14 Jan 2016 18:01:16 +0000 (18:01 +0000)] 
Minor adjustments to the MSVC makefile.

FossilOrigin-Name: e2cba1bbfdcb24e35b2275e29071d8a4e4943417

9 years agoYet another change to FTS5 trying to get it to merge successfully into sessions.
drh [Thu, 14 Jan 2016 14:33:36 +0000 (14:33 +0000)] 
Yet another change to FTS5 trying to get it to merge successfully into sessions.

FossilOrigin-Name: 8dedff3b9ac3e6bf9c131fee19f7d26dc1ebd61f

9 years agoFix more compiler warnings in FTS5.
drh [Thu, 14 Jan 2016 14:29:57 +0000 (14:29 +0000)] 
Fix more compiler warnings in FTS5.

FossilOrigin-Name: f791fc7009d68941c60d7bf953bab19d86112133

9 years agoFix another compiler warning in fts5 code.
dan [Thu, 14 Jan 2016 14:19:50 +0000 (14:19 +0000)] 
Fix another compiler warning in fts5 code.

FossilOrigin-Name: d17bc2c92f4d086280e49a3cc72993be7fee2da7

9 years agoFix compiler warnings in fts5.
dan [Thu, 14 Jan 2016 14:15:54 +0000 (14:15 +0000)] 
Fix compiler warnings in fts5.

FossilOrigin-Name: 5a343cc0336bba056df4449e6cd2e3fb9e75a105

9 years agoFix harmless compiler warnings in RBU and add RBU to the autoconf and windows
drh [Thu, 14 Jan 2016 13:22:24 +0000 (13:22 +0000)] 
Fix harmless compiler warnings in RBU and add RBU to the autoconf and windows
makefiles.

FossilOrigin-Name: fabe78c5d8ab353988f6fe0decacd651edc17ec2

9 years agoFix harmless compiler warnings in sqldiff.c.
drh [Thu, 14 Jan 2016 12:23:16 +0000 (12:23 +0000)] 
Fix harmless compiler warnings in sqldiff.c.

FossilOrigin-Name: 74808a79ea3194f6cc00084b9dccc380846a6051

9 years agoFix the build so that it works for SQLITE_OMIT_WAL again.
drh [Thu, 14 Jan 2016 01:56:43 +0000 (01:56 +0000)] 
Fix the build so that it works for SQLITE_OMIT_WAL again.

FossilOrigin-Name: d55a557bc70460c46a67ae5acd9f8a8356a580c2

9 years agoLook for pthread_mutexattr_init() instead of pthread_create() in autoconf
drh [Wed, 13 Jan 2016 21:23:48 +0000 (21:23 +0000)] 
Look for pthread_mutexattr_init() instead of pthread_create() in autoconf
scripts, to work around issues with ASAN.

FossilOrigin-Name: 9c3a0dc2e8bf202cd846841bd5d4ea67aa189c1a

9 years agoAdd documentation for new API functions to the comments in fts5.h.
dan [Wed, 13 Jan 2016 18:25:36 +0000 (18:25 +0000)] 
Add documentation for new API functions to the comments in fts5.h.

FossilOrigin-Name: 14d296fa7b43b4999a1fd070cf030f83fe1b94c3

9 years agoAdd the SQLITE_FCNTL_JOURNAL_POINTER file control.
drh [Wed, 13 Jan 2016 18:12:44 +0000 (18:12 +0000)] 
Add the SQLITE_FCNTL_JOURNAL_POINTER file control.

FossilOrigin-Name: ad3daa5427672d2d236939ad3285b765f4601801

9 years agoAdd documentation for the SQLITE_FCNTL_JOURNAL_POINTER file-control. file-control-journal
drh [Wed, 13 Jan 2016 18:06:08 +0000 (18:06 +0000)] 
Add documentation for the SQLITE_FCNTL_JOURNAL_POINTER file-control.

FossilOrigin-Name: 807c5aee2e5e5c01eb33688a199755c345c3664e

9 years agoWhen the [https://www.sqlite.org/queryplanner.html#partialsort|block sorting optimiza...
drh [Wed, 13 Jan 2016 17:50:10 +0000 (17:50 +0000)] 
When the [https://www.sqlite.org/queryplanner.html#partialsort|block sorting optimization]
is used in a scalar subquery, be sure to exit the loop as soon as the first
valid output row is received.  Fix for ticket [cb3aa0641d9a4].

FossilOrigin-Name: cdbb0947f9ce18d6d7e29ffab5ea6a2ee5365fbb

9 years agoAdd the "detail" option to fts5. Used to reduce the amount of information stored...
dan [Tue, 12 Jan 2016 19:45:01 +0000 (19:45 +0000)] 
Add the "detail" option to fts5. Used to reduce the amount of information stored in an fts5 index.

FossilOrigin-Name: a220e85fe535af5ef2da6ef5fb76abe5a96b5abf

9 years agoAdd the ".vfslist" command to the command-line shell.
drh [Tue, 12 Jan 2016 19:37:20 +0000 (19:37 +0000)] 
Add the ".vfslist" command to the command-line shell.

FossilOrigin-Name: 5727562b75edf25102cd72607c420d245379c96d

9 years agoImprove performance of fts5 low level iterators. fts5-offsets
dan [Tue, 12 Jan 2016 19:28:51 +0000 (19:28 +0000)] 
Improve performance of fts5 low level iterators.

FossilOrigin-Name: bc5118f40a11f64ffb4e1c086277fa80b9764745

9 years agoFix a harmless use of an uninitialized variable following system errors
drh [Tue, 12 Jan 2016 14:10:05 +0000 (14:10 +0000)] 
Fix a harmless use of an uninitialized variable following system errors
in the multi-threaded sorter.

FossilOrigin-Name: 4bb2c1df105c2d21f5c4c7ef656ff1d6e15f78bc

9 years agoRemove an unused field from the MemPage object.
drh [Tue, 12 Jan 2016 04:08:54 +0000 (04:08 +0000)] 
Remove an unused field from the MemPage object.

FossilOrigin-Name: 5fc0a4c1f353c4c06fcbc4bce8bbe1897ef49eee

9 years agoMake sure all bytes of the WAL file are initialized even if the checksums are
drh [Tue, 12 Jan 2016 02:28:19 +0000 (02:28 +0000)] 
Make sure all bytes of the WAL file are initialized even if the checksums are
not being computed until commit due to WAL overwrite.

FossilOrigin-Name: 1f44a9bdc1577aed088d9b91882527228015dcd3

9 years agoFix an uninitialized field in the Select object when SELECTTRACE is enabled.
drh [Tue, 12 Jan 2016 02:00:24 +0000 (02:00 +0000)] 
Fix an uninitialized field in the Select object when SELECTTRACE is enabled.

FossilOrigin-Name: fc62851667d9120f98a2641c87bbc5a2485482b2

9 years agoVarious #ifdef enhancements for improved VxWorks support.
drh [Tue, 12 Jan 2016 00:37:55 +0000 (00:37 +0000)] 
Various #ifdef enhancements for improved VxWorks support.

FossilOrigin-Name: 75cd41ff179e29c5d45f9d7fed784bc339e0d7a0

9 years agoPerformance optimization in the sqlite3VdbeChangeP4() routine of the
drh [Mon, 11 Jan 2016 22:58:50 +0000 (22:58 +0000)] 
Performance optimization in the sqlite3VdbeChangeP4() routine of the
code generator.

FossilOrigin-Name: 28bd8d5fc541464b69886b7e886939035b42a869

9 years agoFix duplicate test number in 'waloverwrite'.
mistachkin [Mon, 11 Jan 2016 22:43:04 +0000 (22:43 +0000)] 
Fix duplicate test number in 'waloverwrite'.

FossilOrigin-Name: f5fb82686697e5fa1937323b1c1b35cf90ad0302

9 years agoMerge trunk with this branch.
dan [Mon, 11 Jan 2016 18:30:34 +0000 (18:30 +0000)] 
Merge trunk with this branch.

FossilOrigin-Name: a73d245f2e523a57163bc93d9fb6a74c4cdf21e7

9 years agoAdd the fts5speed.tcl script to ext/fts5/tool/.
dan [Mon, 11 Jan 2016 18:23:07 +0000 (18:23 +0000)] 
Add the fts5speed.tcl script to ext/fts5/tool/.

FossilOrigin-Name: 2c0b93553ebb00a70c611eb8dac021877933f088

9 years agoPerformance optimization on the Column opcode.
drh [Mon, 11 Jan 2016 18:05:00 +0000 (18:05 +0000)] 
Performance optimization on the Column opcode.

FossilOrigin-Name: ecc98bef43c2fd07d64e4efddf340929a875ebac

9 years agoFix bugs in fts5 synonym processing for detail=col and other modes.
dan [Mon, 11 Jan 2016 17:30:28 +0000 (17:30 +0000)] 
Fix bugs in fts5 synonym processing for detail=col and other modes.

FossilOrigin-Name: 0e3c545423246231ddac8fed2f103d71d556e17f

9 years agoPerformance optimization in sqlite3WalkExpr().
drh [Mon, 11 Jan 2016 14:19:14 +0000 (14:19 +0000)] 
Performance optimization in sqlite3WalkExpr().

FossilOrigin-Name: 2f8bd5fab8cc51d1f8932c3490fd24dbccf6ef31

9 years agoIncrease the version number to 3.11.0 due to the WAL overwrite enhancement.
drh [Mon, 11 Jan 2016 12:52:55 +0000 (12:52 +0000)] 
Increase the version number to 3.11.0 due to the WAL overwrite enhancement.

FossilOrigin-Name: 8e807bfaa197027d0cb73532baa96755ce71ea12

9 years agoIf a single page is written to the wal file more than once, instead of appending...
dan [Mon, 11 Jan 2016 12:13:47 +0000 (12:13 +0000)] 
If a single page is written to the wal file more than once, instead of appending the second and subsequent copy to the wal file, overwrite the first.

FossilOrigin-Name: d493d4f1186c15da50558a13490cba0191e6f649

9 years agoAdd a test case to waloverwrite.test to check that savepoint rollback does not cause... wal-overwrite-frames
dan [Mon, 11 Jan 2016 08:12:40 +0000 (08:12 +0000)] 
Add a test case to waloverwrite.test to check that savepoint rollback does not cause a problem.

FossilOrigin-Name: 87dae56c322454094d445e474ae36a4f464272a4

9 years agoSlightly smaller and faster LIKE/GLOB comparison implementation.
drh [Mon, 11 Jan 2016 03:48:18 +0000 (03:48 +0000)] 
Slightly smaller and faster LIKE/GLOB comparison implementation.

FossilOrigin-Name: 5dddcc78eec5bcd0c7e8fe1b70875ce775488f0c

9 years agoImproved testability.
drh [Mon, 11 Jan 2016 00:52:32 +0000 (00:52 +0000)] 
Improved testability.

FossilOrigin-Name: e83d3a2a4e06665e8a056f63063bd6df03f063b9

9 years agoAll WAL frame overwrites even if there are active savepoints. This is safe
drh [Sat, 9 Jan 2016 23:55:47 +0000 (23:55 +0000)] 
All WAL frame overwrites even if there are active savepoints.  This is safe
because a ROLLBACK TO will cause all reverted pages to be rewritten to the
WAL file prior to COMMIT.

FossilOrigin-Name: 99b31a6b491c1c51227f478d3713b020d37a17cf

9 years agoIf it is known that checksums will be recalculated on transaction commit, skip calcul...
dan [Sat, 9 Jan 2016 18:57:35 +0000 (18:57 +0000)] 
If it is known that checksums will be recalculated on transaction commit, skip calculating checksums when appending frames to the wal file. When recalculating checksums, recalculate them starting with the first overwritten frame - not the first frame in the transaction.

FossilOrigin-Name: 16b34f2537bbc7846d8e6dc2b35daae5af241c1b

9 years agoIf a single page is written to the wal file more than once, have each subsequent...
dan [Sat, 9 Jan 2016 16:39:29 +0000 (16:39 +0000)] 
If a single page is written to the wal file more than once, have each subsequent copy overwrite the original frame.

FossilOrigin-Name: 5d113aef2c7d746e8eda88d4e36c04a39b0a11be

9 years agoTypo fix in the previous commit.
drh [Fri, 8 Jan 2016 22:31:00 +0000 (22:31 +0000)] 
Typo fix in the previous commit.

FossilOrigin-Name: 52c166039831cc8423e2252019ef64a21b9d7c2a

9 years agoMore #ifdef fixes for the unix VFS.
drh [Fri, 8 Jan 2016 22:18:00 +0000 (22:18 +0000)] 
More #ifdef fixes for the unix VFS.

FossilOrigin-Name: 122c111e360761de8166e16ca151cb7260ee9bf8

9 years agoFix the build for SQLITE_OMIT_SHARED_CACHE, which was broken, possibly
drh [Fri, 8 Jan 2016 19:34:39 +0000 (19:34 +0000)] 
Fix the build for SQLITE_OMIT_SHARED_CACHE, which was broken, possibly
by check-in [2d96aeba].

FossilOrigin-Name: 3392f8fa2ddf2c10ffe91ddd92470040c909b36d

9 years agoFix a problem with #ifdefs on the system calls in the unix VFS that causes
drh [Fri, 8 Jan 2016 19:17:30 +0000 (19:17 +0000)] 
Fix a problem with #ifdefs on the system calls in the unix VFS that causes
problems when compiling with SQLITE_OMIT_WAL.

FossilOrigin-Name: ceceea4c5ee242b20ebf216593c15c11ce2c369a

9 years agoRemove an obsolete #ifdef related to iOS support.
drh [Fri, 8 Jan 2016 17:28:24 +0000 (17:28 +0000)] 
Remove an obsolete #ifdef related to iOS support.

FossilOrigin-Name: e9a51d2a580daa0fb152fe4c891149caa8025b9d

9 years agoBegin adding fts5 tests involving synonyms and detail=none/col tables.
dan [Fri, 8 Jan 2016 17:21:18 +0000 (17:21 +0000)] 
Begin adding fts5 tests involving synonyms and detail=none/col tables.

FossilOrigin-Name: b3e6f15ec2d9a834e2c80b91ffd7097553816228

9 years agoReduce the number of calls to memset() in sqlite3DbMallocZero().
drh [Fri, 8 Jan 2016 12:46:39 +0000 (12:46 +0000)] 
Reduce the number of calls to memset() in sqlite3DbMallocZero().

FossilOrigin-Name: cede2bf8e42ac140a8cc75a1d173083f543ba467

9 years agoFix test file vtabH.test so that it works with SQLITE_ENABLE_ICU builds.
dan [Fri, 8 Jan 2016 08:35:14 +0000 (08:35 +0000)] 
Fix test file vtabH.test so that it works with SQLITE_ENABLE_ICU builds.

FossilOrigin-Name: 19c1f4483e3df7fa1e9ac7c8a510fa1c906ac7c7

9 years agoFix fts5vocab.test so that it works with detail=none tables.
dan [Fri, 8 Jan 2016 07:53:09 +0000 (07:53 +0000)] 
Fix fts5vocab.test so that it works with detail=none tables.

FossilOrigin-Name: d9135cc723fc4227aace6dcf4ffa4630c9d23aa0

9 years agoAdd the experimental SQLITE_FCNTL_JOURNAL_POINTER file control for obtaining
drh [Fri, 8 Jan 2016 02:27:01 +0000 (02:27 +0000)] 
Add the experimental SQLITE_FCNTL_JOURNAL_POINTER file control for obtaining
the sqlite3_file pointer associated with a rollback journal or WAL file.

FossilOrigin-Name: a02ace9a746ff02fc1a5969bf13939b568624f93

9 years agoOmit performance tracking from the memsys5 memory allocator if neither
drh [Thu, 7 Jan 2016 21:12:40 +0000 (21:12 +0000)] 
Omit performance tracking from the memsys5 memory allocator if neither
SQLITE_DEBUG nor SQLITE_TEST are defined.

FossilOrigin-Name: af5c7714e993f060841f1e893f754ddf3870e6d0

9 years agoUpdate the fts5vocab module to work with detail=col and detail=none tables.
dan [Thu, 7 Jan 2016 20:07:41 +0000 (20:07 +0000)] 
Update the fts5vocab module to work with detail=col and detail=none tables.

FossilOrigin-Name: eedd095dc1c81ce45df00093ba237dd7b3cdff3d