drh
240c5795d5
Preliminary fix for ticket #599 . More testing and analysis needed. (CVS 1208)
...
FossilOrigin-Name: dc5be2c82b591a385adf02863d89e113272e2ebd
2004-02-08 00:40:52 +00:00
drh
133cdf6eba
Add a typecast to work around a bug in the Metrowerks Code Warrior compiler.
...
Ticket #553 . (CVS 1161)
FossilOrigin-Name: 4146f8cc3ff5339b5685e9c5121888ae08ee0807
2004-01-07 02:52:07 +00:00
drh
acf4ac96e3
Make sure the pagers in-memory cache states in sync with the disk file.
...
Ticket #529 . (CVS 1133)
FossilOrigin-Name: da00efb13fe8ccf1c27e4e1193df6b53de9463f4
2003-12-17 23:57:34 +00:00
drh
5045789694
The beginnings of changes to support pre-compiled SQL. Mostly untested,
...
though all regression tests to pass. (CVS 1093)
FossilOrigin-Name: 912f47c72d3597c6d5acff765d94922bd660339a
2003-09-06 01:10:47 +00:00
drh
ec1bd0bd72
Fix compiler warnings under OpenVMS. Ticket #357 . (CVS 1088)
...
FossilOrigin-Name: c95f347cac27732533a2f6fd4ba50bf00eef59f3
2003-08-26 11:41:27 +00:00
drh
901afd4341
If the database filename is an empty string, open a temporary file to hold
...
the database. Ticket #432 . (CVS 1085)
FossilOrigin-Name: da53369f0bf133b89b213bbb1ccea13eb93ab6ed
2003-08-26 11:25:58 +00:00
drh
a76c82eb0d
When creating a new journal file, open a (read-only) file descriptor on the
...
directory containing the journal and sync that directory once to make sure
that the journal filename entry gets into the directory. Ticket #410 . (CVS 1066)
FossilOrigin-Name: 09c10fe3c99cffc64ed02c2929f206d99c8e3309
2003-07-27 18:59:42 +00:00
drh
3e4c852889
A proported fix for ticket #374 . (CVS 1047)
...
FossilOrigin-Name: a49ee69e98df80b479aa6bb97a9af9c6abf04e3f
2003-07-07 10:47:10 +00:00
drh
e2227f0092
Open the journal file for read-only when doing a playback. Ticket #351 . (CVS 1019)
...
FossilOrigin-Name: 66ac7aea3df8533a49c8c05ba57c5a7015626828
2003-06-14 11:42:57 +00:00
drh
7d02cb73ca
Fix a bug in UPDATE OR REPLACE that was introduced by check-in (999).
...
Also clean up some compiler warnings for VC++. (CVS 1005)
FossilOrigin-Name: af6f2bdf59fb621ff3e1d061e429f01ebd7d0b42
2003-06-04 16:24:39 +00:00
drh
2e6d11bc07
Add tests to insure VACUUM works in the presence of I/O errors. Fix some
...
problems that came to light by these tests. (CVS 935)
FossilOrigin-Name: 8d3e879349fc9523c72cb46111e0058b57ce9341
2003-04-25 15:37:57 +00:00
drh
f7c5753174
Make VACUUM work even if multiple processes have the database open at once. (CVS 933)
...
FossilOrigin-Name: caa960289f3d1f5e8f35a94e9e4321996c211ed2
2003-04-25 13:22:51 +00:00
drh
e1051c653e
Move the implementation of VACUUM into a separate source file. (CVS 901)
...
FossilOrigin-Name: b123c165fd3d0a5a86ee8a7baa669105dafb481a
2003-04-06 20:52:32 +00:00
drh
73509eee84
Simplify the BTree interface by shortening names. Added two new methods
...
for accessing the current filename and for changing the name of the
database file. (CVS 900)
FossilOrigin-Name: 185d8dc8d0c26cef36aeba6992823e5124af4056
2003-04-06 20:44:45 +00:00
drh
001bbcbb8f
Modifications to the VDBE to support more than one database file. (CVS 878)
...
FossilOrigin-Name: 875da9eed981bfa27b98e95025f9fdbed74b4098
2003-03-19 03:14:00 +00:00
drh
99ee360003
Fix more bugs. The new rollback journal implementation now passes all
...
regression tests under Linux. (CVS 867)
FossilOrigin-Name: d10adc1c5727d76320d5919be55e86d030e9c8bc
2003-02-16 19:13:36 +00:00
drh
4303feedd3
Fix the pager so that correct rollbacks occur when synchronous is turned off.
...
This check-in also included unrelated documentation updates. (CVS 866)
FossilOrigin-Name: 3ef0ad8a4f2696a58aff9d812f90038c2c63f3fc
2003-02-15 23:09:17 +00:00
drh
4a0681ef1b
Fix a bug in the rollback logic for the new journal format. (CVS 864)
...
FossilOrigin-Name: 7c22aa3f817e737cfd943d903856756468e8678b
2003-02-13 01:58:20 +00:00
drh
973b6e333d
Added the new FULL option to the SYNCHRONOUS pragma. Still need to test it. (CVS 863)
...
FossilOrigin-Name: 792a9e157dd066fcaffd4f5b373010151fb4ca61
2003-02-12 14:09:42 +00:00
drh
d8d66e8ca0
Fix a bug in the legacy journal format writing logic. (CVS 862)
...
FossilOrigin-Name: 6c927dd36c19ebb8bb8222b4d18ed67f4fe733e8
2003-02-12 02:10:15 +00:00
drh
968af52acf
Modify the journal format to be more robust against garbage that might appear
...
in the file after a power failure. The changes are mostly working but more
testing is still required. This check-in is to checkpoint the changes so far. (CVS 861)
FossilOrigin-Name: 8ec5632536eea31197a3b1fd6abc57881a0cf1d7
2003-02-11 14:55:40 +00:00
drh
3a84069da3
Additional testing and bug fixing with the non-callback API. Updated the
...
C/C++ interface document to describe the non-callback API. (CVS 855)
FossilOrigin-Name: af1e9299468aa70d7d91e7a5445ba391ccc8ff8b
2003-01-29 22:58:26 +00:00
drh
a218b6a22a
Fix a bug in the rollback validation logic (code that only runs during
...
debugging). The problem was introduced by check-in (835). (CVS 849)
FossilOrigin-Name: b6ea0da76a27a4a67a3978c53405840518de2379
2003-01-25 15:43:22 +00:00
drh
2554f8b0c0
Minor refinements to the pager. (CVS 844)
...
FossilOrigin-Name: 19221dee5fee4c8800cbae309f009964c8d646a2
2003-01-22 01:26:44 +00:00
drh
341eae8d35
In the pager, cache a pointer to the first page on the freelist that does not
...
need to be synced. This makes a fetch of a page that is not in cache go a
lot faster when the cache is full. This check-in also adds some performance
instrumentation to the OS layer. (CVS 842)
FossilOrigin-Name: 00f08fc0b5b6b9c5efbf15a62f9a1cc1cfa71283
2003-01-21 02:39:36 +00:00
drh
db48ee02c4
Improvements to the pager to help large updates against a large database run
...
faster. Also improved the testing of the pager rollback algorithms. (CVS 835)
FossilOrigin-Name: 717523d3750dce784fa767ed9a8267d1246798ef
2003-01-16 13:42:43 +00:00
drh
ed6c8671b3
Initial check-in of the code for the new sqlite_set_authorizer() API function.
...
The code is mostly untested at this point. (CVS 827)
FossilOrigin-Name: 52d5007f64d0af5286b2a0e1f0b9e53c86bece3f
2003-01-12 18:02:16 +00:00
drh
836faa4843
Remove the ColumnCount opcode, which had become a no-op. (CVS 821)
...
FossilOrigin-Name: 86deb12d68026913d181f9498144fa56445899f2
2003-01-11 13:30:57 +00:00
drh
9bd47a97c0
Avoid calling truncate() and stat() on the checkpoint journal to improve the
...
speed of a large number of UPDATEs within a transaction. (CVS 819)
FossilOrigin-Name: 2f89e9e6963cb715f3671f1fdbf4c966aadff6c8
2003-01-07 14:46:08 +00:00
drh
2c79995565
Allow the rollback journal to be empty except for its header.
...
Ticket #212 . (CVS 809)
FossilOrigin-Name: 1ba41bc2afab18cc295d9a45845296b46bfa57e5
2003-01-03 02:04:27 +00:00
drh
8c1238aebd
Code optimizations to help the library run faster. (CVS 808)
...
FossilOrigin-Name: db745e87dc26cf1a35cdcec18f4b659742e14120
2003-01-02 14:43:55 +00:00
drh
80eb79055e
Fix an uninitialized variable in the pager. Tickets #208 and #206 .
...
Bug introduced by check-in (795). (CVS 804)
FossilOrigin-Name: f3dc686e0258a9588e1433a89ac46795f76beeae
2002-12-28 01:06:30 +00:00
drh
3e7a609667
Save the full pathname of the database file so that journalling still works
...
even if the user changes working directories after opening the databae.
Ticket #200 . (CVS 798)
FossilOrigin-Name: 1c58b4fc032c5975dcce9b8ae844c0e516254a17
2002-12-07 21:45:14 +00:00
drh
da47d7748f
Change to the pager to avoid opening journal files unnecessarily. This can
...
sometimes results in a significant speed improvement. (CVS 791)
FossilOrigin-Name: fa5c042585c601449ede7319d0c5993cd8ba75a4
2002-12-02 04:25:19 +00:00
drh
d0d006e29c
Fixed large file support under Linux. I'm unable to test under Windows.
...
Ticket #191 . (CVS 790)
FossilOrigin-Name: 9864a1265b5a37c12b0dd8446d81b84c5a3acc43
2002-12-01 02:00:57 +00:00
drh
4d9ef4c4ef
Back out the changes in the pager that sorted pages prior to writing them
...
to the database. Additional measurements showed no performance gains. (CVS 785)
FossilOrigin-Name: 745d66395daf5cb8463305bbc9e4219534d2b7cf
2002-11-11 01:04:47 +00:00
drh
03eb96a7b2
Two optimizations to the pager: (1) Write dirty pages back to the database
...
file in order and (2) Keep a separate list of in-memory pages that are in
the checkpoint journal in order to speed a checkpoint commit. (CVS 783)
FossilOrigin-Name: a6ef6657a4377684dc2fce7be2bbf009fd2d2f37
2002-11-10 23:32:56 +00:00
drh
8766c34348
Try to better detect when the library is compiled for large file support (LFS)
...
but the support is not available in the host OS kernel. (CVS 782)
FossilOrigin-Name: a29d60ecc5ee3f535142a81f56eecbef7875ef22
2002-11-09 00:33:15 +00:00
drh
829e802992
Add large file support to Windows. Change large file support for Unix so
...
that it compiles automatically - without requiring special options on the
compiler command line. (CVS 781)
FossilOrigin-Name: 2008b56fe11e49d52e28f47d14ccd70504e6c094
2002-11-06 14:08:11 +00:00
drh
28be87c7c4
Add support for databases larger than 2GB under Unix. Must be compiled
...
with -D_FILE_OFFSET_BITS=64 and -D_LARGEFILE_SOURCE in order to work with
larger databases. (CVS 778)
FossilOrigin-Name: a3f67fe9121ca4655510094fe775b8603a87800e
2002-11-05 23:03:02 +00:00
drh
96ddd6db58
Rewind the checkpoint journal after each statement to avoid allowing
...
the file to become too large. (CVS 744)
FossilOrigin-Name: f4288520dfd1587446e50fa7ef23f75f6f63a7cf
2002-09-05 19:10:33 +00:00
drh
4e371ee41c
Fix for ticket #146 : Correctly handle reads of unused disk blocks at the
...
end of the file. (CVS 743)
FossilOrigin-Name: f5c2654768a6201fc554b59f1b2f56bcce738bc4
2002-09-05 16:08:27 +00:00
drh
74587e5567
Updates prior to release 2.6.3. (CVS 706)
...
FossilOrigin-Name: 34c4149eea7a48927e36867f4e25ff7fac40c66e
2002-08-13 00:01:16 +00:00
drh
94f3331a0b
Fix for ticket #9 (again). The rollback journal files should now also be
...
byte-order independent. (CVS 705)
FossilOrigin-Name: 2fb3fdcdf06c1206bf14da640c2f9e599455f0eb
2002-08-12 12:29:56 +00:00
drh
193a6b4142
More rollback problems: Fix two more errors introduced by checking (410) that
...
can cause database corruption after a ROLLBACK. Also add new tests to make
sure everything is working this time. (CVS 663)
FossilOrigin-Name: f6e24d5ccbcfcf5863ffbd65860dafa2f5663e99
2002-07-07 16:52:46 +00:00
drh
8e298f92f6
Fix for bug #94 : Be sure to journal pages that are added to the freelist then
...
removed from the freelist and reused during the same transaction. (CVS 660)
FossilOrigin-Name: db178646a01483d59e6f9af302e9bbe394956d93
2002-07-06 16:28:47 +00:00
drh
8124a30f82
Bug fix: When the database file grows in size during a transaction, make sure
...
the last page of the file gets written to disk even if that page is on the
free list and contains no data. Otherwise the disk file will be too small
which can lead to database corruption in subsequent transactions. (CVS 643)
FossilOrigin-Name: 36fc0add660f9f3676783765d37280aa874caecb
2002-06-25 14:43:57 +00:00
drh
0f89253e21
Once it is opened, leave the checkpoint journal file open for the
...
duration of a transaction, rather than closing it and reopening it
for each statement. (Ticket #53 ) (CVS 599)
FossilOrigin-Name: 7a24336d50e72006b2cc0e4feb292b946e79d5f3
2002-05-30 12:27:03 +00:00
drh
a168045f7d
Fix for ticket #19 : Do not call sqliteOsSync() if the only changes were
...
changes to TEMP tables. (CVS 530)
FossilOrigin-Name: 33da20b9c1a8eef16ad7ab5929bb8937c75090f2
2002-04-18 01:56:57 +00:00
drh
cd61c2816f
Added the default_cache_size and default_synchronous pragmas. Added additional
...
tests for pragmas. Added a new speedtest script. (CVS 421)
FossilOrigin-Name: 161c0c5f5db66815e4345c9b5f7a600c03a67475
2002-03-06 22:01:34 +00:00