Commit Graph

3605 Commits

Author SHA1 Message Date
drh
9444081a3b Do not read the last page of a overflow chain when deleting that chain.
Just add the page to the freelist.  This reduces I/O. (CVS 3672)

FossilOrigin-Name: 6db945f7a7587c8c7adada92f94ac7936b901cf1
2007-03-06 11:42:19 +00:00
drh
0787db6519 Changes to the btree and pager that reduce the amount of I/O when dealing
with the freelist.  (1) Avoid journaling pages of a table that is being
deleted.  (2) Do not read the original content of pages being pulled off
of the freelist. (CVS 3671)

FossilOrigin-Name: 2ba5be311945a4c15b6dce7c01efefb513b9a973
2007-03-04 13:15:27 +00:00
danielk1977
8efe541f24 Handle the case where the estimated cost of a virtual table scan is larger than SQLITE_BIG_DBL. Ticket #2253. (CVS 3670)
FossilOrigin-Name: 52885ed8b76a06588acf202a38b4feabfca1cfd1
2007-03-02 08:12:22 +00:00
danielk1977
a41c7497e8 Disable the "SELECT max(rowid) ..." optimization for virtual tables. Ticket #2250. (CVS 3669)
FossilOrigin-Name: ddb4d0af5770c7030fe6e92119972c9508724b9a
2007-03-02 07:27:00 +00:00
danielk1977
b4622b6075 Minor fixes so that testfixture builds without IO tracing enabled. (CVS 3668)
FossilOrigin-Name: 8d3829cdb35f41bc7a2e6f945e9aa83987513104
2007-03-02 06:24:19 +00:00
drh
602c237461 Additional I/O Tracing support. (CVS 3667)
FossilOrigin-Name: ed915f579a8e5b75681a9a6012b5041500cad36c
2007-03-01 00:29:13 +00:00
drh
f075cd087b Work around incompatibilities in the windows printf() routine within the
new I/O tracing logic. (CVS 3666)

FossilOrigin-Name: ceb3a07f559b5160232c8bce5446f4d0e8aab92b
2007-02-28 06:14:25 +00:00
drh
b0603416dc Add the undocumented and experimental I/O tracing interface. This
interface is likely to change and may be completely abandoned in the
near future. (CVS 3665)

FossilOrigin-Name: 007ca283892a66dd8b9e0dfece4f75d0d08a4300
2007-02-28 04:47:26 +00:00
drh
15d00c4e7b Improvements to OS layer tracing on the unix backend. (CVS 3664)
FossilOrigin-Name: 3ad96dbe09b99bd5f623de0de3072a25e9e2bc17
2007-02-27 02:01:14 +00:00
drh
d40aab0ea8 Add comments to sqlite3ExprCompare() to clarify its operation. Ticket #2216. (CVS 3663)
FossilOrigin-Name: fba0a1e50820677081bc7cf01f97bf953065f7c4
2007-02-24 15:29:03 +00:00
drh
fb658dedce Additional test cases added. Improvements to the INSERT transfer
optimization. (CVS 3662)

FossilOrigin-Name: 2bf5475bde763f73f7f4dd9cac7d13a631a7d2aa
2007-02-24 15:18:49 +00:00
drh
dd73521bc2 Additional tests and some improvements to the INSERT transfer
optimization.  More testing is needed. (CVS 3661)

FossilOrigin-Name: 830985814345f71ba2def3c206e36aabe9e1ee7c
2007-02-24 13:53:05 +00:00
drh
8103b7d2b7 Make sure the INSERT xfer optimization does not trigger if the CHECK
constraints on the two tables are not identical.  Ticket #2252. (CVS 3660)

FossilOrigin-Name: 6fc18275230563437f2985eac3795e4dfe8eb9de
2007-02-24 13:23:51 +00:00
drh
945498f3f2 Make sure that integer values are converted to real when pulled from
a REAL table column by GROUP BY.  Ticket #2251.  Also make sure default
values are correctly expanded.  There may be other places in the code
where this issue comes up - we need to look further. (CVS 3659)

FossilOrigin-Name: e11bbf174c5a2fa75e3d1dd450c8b2a18f40e4da
2007-02-24 11:52:52 +00:00
drh
3e35580779 Disable the OR optimization if it would conflict with column
affinity coercions.  Ticket #2249.  Additional cleanup and testing
of the OR optimization. (CVS 3658)

FossilOrigin-Name: 908daaa9ab86e0bd1da6d0807d6aaba240c3cee0
2007-02-23 23:13:33 +00:00
drh
b0988dead7 Clarifications to the datatype3.html document. (CVS 3657)
FossilOrigin-Name: 4692a85edbe27d512f1830b8fb3e2b05b92a0cb5
2007-02-23 14:20:38 +00:00
drh
de087bd5ed Clarify the documentation on how comparisons occur in an IN operator.
Fix the comparison operators when both sides of an IN operator are
expressions (ticket #2248).
Changes to main.mk for adding FTS2 into the standard build also
got mixed in with this check-in by mistake. (CVS 3656)

FossilOrigin-Name: da81725ca1cd894b3f2d734767e10cc0dc329566
2007-02-23 03:00:44 +00:00
shess
450d0aa933 Fix typos in test naming (was using 'e' instead of 'f'). (CVS 3655)
FossilOrigin-Name: 16cb00adeb3b68220ba2567b86b230bbbf2a0330
2007-02-23 00:14:05 +00:00
drh
ca44b5a3d9 Make the depth of the pushdown automaton stack generated by lemon
changable at compile-time using -DYYSTACKDEPTH=<number>. (CVS 3654)

FossilOrigin-Name: d8845ac1fbf8c3f483d47c35f908817ea37128ec
2007-02-22 23:06:58 +00:00
danielk1977
07fd059aa1 Modify the fix for #2244 to avoid using a vdbe label. (CVS 3653)
FossilOrigin-Name: f7ce74b22ab739b8c8599cdc605aa9da1f5b5be5
2007-02-21 17:04:04 +00:00
danielk1977
b77ff0139e Fix for an UPDATE on a virtual table when the WHERE clause matches zero rows.
Ticket #2244. (CVS 3652)

FossilOrigin-Name: 43bf797842f00a104f5c5619ad3215edddfc641b
2007-02-21 16:52:12 +00:00
drh
0d5359b9d8 Add comments to the top of keywordhash.h. (CVS 3651)
FossilOrigin-Name: 0aa9ed5bbfb756967a6f761c5fc2f274a5466e2d
2007-02-21 16:44:33 +00:00
drh
39fa3e3c48 Enhance the documentation to clarify that SQLite is not reentrant through
the authorization callback function.  Ticket #2242. (CVS 3650)

FossilOrigin-Name: b18a758a8fbd4b286ae3475af26f290d8cd583f0
2007-02-20 15:21:05 +00:00
vapier
224b8948c8 merge the second portion of the cross-compile cleanup (CVS 3649)
FossilOrigin-Name: 309f2de62f34160fa24a5e1a3de0d653aabfb52b
2007-02-17 14:59:17 +00:00
vapier
7f19c02faa regenerate (CVS 3648)
FossilOrigin-Name: 20ac0f364059feba5ad95dbe82db30a9aa86be78
2007-02-17 14:46:31 +00:00
vapier
c8a15308a1 punt custom handling of cross-compile logic and move towards the standard autotool way of things (CVS 3647)
FossilOrigin-Name: 9817b433da36c78513ca278ae28e8ca8ce1cf00b
2007-02-17 14:31:55 +00:00
vapier
4c10a8a006 make the readline checks more flexible and handle cross-compiling logic (CVS 3646)
FossilOrigin-Name: 4626c84bae1a11d3cdad4901b19caf44406bd62a
2007-02-17 14:28:26 +00:00
drh
920769d3a6 In the corrupt2.test script,
change uses of (open ... a) to (open ... RDWR) to work around
inconsistencies in behavior across various platforms. (CVS 3645)

FossilOrigin-Name: 50e86b0368ae0268e7f07e44a746e13ad86a3b8b
2007-02-14 12:32:13 +00:00
danielk1977
0817d0dfc2 Use OP_VColumn instead of OP_Column when querying virtual tables for values to save in aggregate context records. #2230. (CVS 3644)
FossilOrigin-Name: cb78f7cb0f0bf0c799a929fd6ea30f25e2a7b5d0
2007-02-14 09:19:36 +00:00
drh
9d9cf22971 Add a new algorithm for handling INSERT which reduces fragmentation on
a VACUUM.  Ticket #2075.  More testing needed. (CVS 3643)

FossilOrigin-Name: 9f56a878cbbc715262b3a48ee696148dbd7bf1d2
2007-02-13 15:01:11 +00:00
drh
1f9a746277 Changes to the script that generates download.html so that it recognizes
FTS2 modules. (CVS 3642)

FossilOrigin-Name: 06c22de25472eba439d7f05879eb13756c4e34a8
2007-02-13 14:11:46 +00:00
drh
56cdc6e0c4 Version 3.3.13 (CVS 3641)
FossilOrigin-Name: 286c4eb30dfe1e8ef110cd2a214d71612a78b8cc
2007-02-13 13:04:54 +00:00
drh
e68fbe7978 Expand the cursor index in SrcList_item to 32-bits to accomodate really
huge VDBE programs resulting from deeply nested triggers.  This is an
interim fix until we rework triggers to use subroutines. (CVS 3640)

FossilOrigin-Name: 22769e2d37f4912ad388d2ed79f93571d0279fb8
2007-02-13 12:49:24 +00:00
drh
8e79d2577b Changed my mind. Convert "GUID" back to "UUID". (CVS 3639)
FossilOrigin-Name: c258840515de6ab16725d98dab6ae654d50bcc3c
2007-02-13 02:12:02 +00:00
drh
19971720af Change "UUID" to "GUID" in the documentation. (CVS 3638)
FossilOrigin-Name: dddd31f4e09f1b83d9c8fb9280cdc5aff13855ca
2007-02-13 02:07:37 +00:00
drh
60589cfcfe Changes in preparation for version 3.3.13. (CVS 3637)
FossilOrigin-Name: 7799a0b63dd4ab6f422f138e5b423d6fb00529fb
2007-02-13 02:03:23 +00:00
drh
fc6e0c985a Explanation of the "fragmentation" line is added to the help message at
the end of the output of sqlite3_analyzer. (CVS 3636)

FossilOrigin-Name: 31e5073c58f43b84d26218d70e6f6558c406803e
2007-02-13 01:41:52 +00:00
drh
0a0b77b0d2 Additional fixes to the new fragmentation feature of sqlite3_analyzer. (CVS 3635)
FossilOrigin-Name: 82aed271a4a69e3dad6013b83cc7d492b7fed164
2007-02-13 01:38:31 +00:00
drh
50c6706305 Changes to support fragmentation analysis in sqlite3_analyzer. (CVS 3634)
FossilOrigin-Name: bd6bc3b8f06919000fb082087dff7bbd335d07e9
2007-02-10 19:22:35 +00:00
drh
ec41ddac37 Explicit collations always override implicit collations. This is
backwards compatible since SQLite has not previously supported
explicit collations. Need to add tests of this new behavior. (CVS 3633)

FossilOrigin-Name: 3638823a629164e4158f76d03ff2cea1eab34e9d
2007-02-07 13:09:45 +00:00
drh
53a677749f Change the coding of PRAGMA count_changes so that it uses memory cells
of the VM rather than the stack, to avoid problems with leftovers on the
stack interfering with other operations.  Ticket #2217. (CVS 3632)

FossilOrigin-Name: 2bd4b62a20219f939ac2ac22440dc7fc0449f766
2007-02-07 01:06:52 +00:00
shess
3438ea3b9e http://www.sqlite.org/cvstrac/tktview?tn=2219
When creating fts tables in an attached database, the backing tables
are created in database 'main'.  This change propagates the
appropriate database name to the routines which build sql statements.

Note that I propagate the database name and table name separately.  I
briefly considered just making the table name be "db.table", but it
didn't fit so well in the model used to store the table name and other
information, and having the db name passed separately seemed a bit
more transparent. (CVS 3631)

FossilOrigin-Name: 283385d20724f0144f38de89bd179715ee5e738b
2007-02-07 01:01:17 +00:00
drh
32ffdb7393 Additional tests to give full coverage testing to ticket #2211. (CVS 3630)
FossilOrigin-Name: ecb1f2fd7b96797459287eaab95693ae17ec2079
2007-02-06 23:41:34 +00:00
drh
7b4fc6a8cb When optimizing out an ORDER BY clause due to uniqueness constraints, make
sure unused terms to the right in the ORDER BY clause to not reference other
tables in a join.  Ticket #2211.  Additional test cases needed before
closing this ticket. (CVS 3629)

FossilOrigin-Name: 912faf18d86416b1a36660851f8a4554e6746875
2007-02-06 13:26:32 +00:00
drh
8ebf6707cf Check the return value of lseek() in os_unix.c to make sure it really worked. (CVS 3628)
FossilOrigin-Name: e4408dd1fd32e6c5057cce0fdfa70eb2d9bd2531
2007-02-06 11:11:08 +00:00
danielk1977
d7263927f7 Set the MEM_Term flag when an internal string has a nul-terminator appended to it. Fix for #2213. (CVS 3627)
FossilOrigin-Name: fc969ad991e5114c3612f4796e342a6db2d79cd5
2007-02-05 14:21:47 +00:00
drh
a34001c9a3 Minor tweaks to collating sequences. We'll hold of making major changes
until 3.4.0, since we'll likely end up with some minor technical
imcompatibilities. (CVS 3626)

FossilOrigin-Name: 9740aa95a3f848fc663c88263a911fbc76ada243
2007-02-02 12:44:37 +00:00
drh
bba63d8bc2 Fix typos in the pragma documentation. Ticket #2210. (CVS 3625)
FossilOrigin-Name: f0c66ad8e9bc303e3173438a56e47802c8fdde05
2007-02-02 12:33:16 +00:00
drh
8b4c40d8ac First cut at adding the COLLATE operator. Regression tests pass (or at least
the quick set does) and a few new tests have been added.  But many more
tests are needed.  Rules for combining collations need to be worked out. (CVS 3624)

FossilOrigin-Name: 85cca7cd252d46ba71d302a89bc67c56146ec552
2007-02-01 23:02:45 +00:00
drh
3e701a187e Fix a bug in the copy method of the TCL interface. Ticket #2201. (CVS 3623)
FossilOrigin-Name: 936263966ea70792e8abb712730f78cafa1fdbad
2007-02-01 01:53:44 +00:00