]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
5 months agoMinor updates to schemacopy.test. schema-copy
dan [Fri, 10 Jan 2025 17:09:51 +0000 (17:09 +0000)] 
Minor updates to schemacopy.test.

FossilOrigin-Name: 1d544b535f64c47d2133f72a738714e0448a803a95f65d2d880281a9e6d6bd35

5 months agoAllow ".testctrl schemacopy 1" in the shell tool on this branch. For testing sqlite3_...
dan [Fri, 10 Jan 2025 15:10:08 +0000 (15:10 +0000)] 
Allow ".testctrl schemacopy 1" in the shell tool on this branch. For testing sqlite3_schema_copy().

FossilOrigin-Name: 1edc2e5590c8451788cbfbbf1a39cc3013e40c870a7bc6597051390d7f1b52f9

5 months agoUpdate test script wal2big2.test to be less sensitive to PRNG output.
dan [Fri, 10 Jan 2025 11:34:43 +0000 (11:34 +0000)] 
Update test script wal2big2.test to be less sensitive to PRNG output.

FossilOrigin-Name: 2a5e7c5cd6c7c2c91e786ae9a2c0a0f766bcc6dcb88431df65e6e209bf5117b2

5 months agoRun tests with SQLITE_TESTCTRL_SCHEMACOPY for mdevtest and sdevtest on this branch.
dan [Thu, 9 Jan 2025 20:41:18 +0000 (20:41 +0000)] 
Run tests with SQLITE_TESTCTRL_SCHEMACOPY for mdevtest and sdevtest on this branch.

FossilOrigin-Name: c25dd2dec58f92c4c6686ed374facc64a6847232b47ecc95bc602babeb08f4e8

5 months agoRationalize and add comments to new code on this branch.
dan [Thu, 9 Jan 2025 19:18:51 +0000 (19:18 +0000)] 
Rationalize and add comments to new code on this branch.

FossilOrigin-Name: e1603c9cda7cef88152cba5085541b419cee08cf58f917eecb15c4a30322fe2b

5 months agoFix minor issues on this branch. Remove unused code.
dan [Thu, 9 Jan 2025 17:12:27 +0000 (17:12 +0000)] 
Fix minor issues on this branch. Remove unused code.

FossilOrigin-Name: c2610bb4becf5b5c58016947e07f5c7a330210370f0d2531ab9ecb1ce8658c1a

5 months agoFix problem in test code on this branch.
dan [Wed, 8 Jan 2025 17:16:09 +0000 (17:16 +0000)] 
Fix problem in test code on this branch.

FossilOrigin-Name: 05d90f8b28581f4ac3751a58e6d75ed18b29294381b3aa4c383c047ecdeabb82

5 months agoEnsure that integrity-check processes tables in the same order when using a copied...
dan [Wed, 8 Jan 2025 10:55:39 +0000 (10:55 +0000)] 
Ensure that integrity-check processes tables in the same order when using a copied schema as it does when using one loaded directly from the db.

FossilOrigin-Name: 961af9444275f1d18730beffc4111116877dd425eb44797e9e051273e47b8396

5 months agoFix many problems in the sqlite3_schema_copy() function.
dan [Tue, 7 Jan 2025 21:04:51 +0000 (21:04 +0000)] 
Fix many problems in the sqlite3_schema_copy() function.

FossilOrigin-Name: ac9ca885902a105a4afc3bf157688c30f100bdb1064380328fd7f7a7fa126ee8

5 months agoImplemenation of experimental API sqlite3_schema_copy(), for copying a database schem...
dan [Mon, 6 Jan 2025 20:39:57 +0000 (20:39 +0000)] 
Implemenation of experimental API sqlite3_schema_copy(), for copying a database schema between connections. More testing to come.

FossilOrigin-Name: 65ede04d2176e7206ca6ac004df14f488c274a6b092f6a7dc897b049012898fb

6 months agoUp logs to "v=21".
dan [Mon, 23 Dec 2024 11:31:16 +0000 (11:31 +0000)] 
Up logs to "v=21".

FossilOrigin-Name: dc3a24a784c95398656e0d7885f7eb0ee626b86c896e759a6ac5c243fd6f0ab7

6 months agoExperimental: If SQLite is compiled with SQLITE_WAL_BIGHASH defined, use hash
dan [Mon, 23 Dec 2024 11:23:07 +0000 (11:23 +0000)] 
Experimental: If SQLite is compiled with SQLITE_WAL_BIGHASH defined, use hash
tables large enough to fit 128K, instead of 4K, entries in the *-shm file.

FossilOrigin-Name: 6e800b7035f55a211917d28cacf829b1681f37cbd2e6989c4cc20d4027a4192d

6 months agoWhen loading stat4 data, make a single large allocation for all Index.aSample[] array...
dan [Fri, 20 Dec 2024 19:37:41 +0000 (19:37 +0000)] 
When loading stat4 data, make a single large allocation for all Index.aSample[] arrays, instead of a separate allocation for each.

FossilOrigin-Name: b40cd7395c44b1f2d019d8e809e03de0e083c93693322a72ddb250a85640528f

6 months agoAvoid a memset() when loading stat4 data. Add instrumentation to the same code.
dan [Fri, 13 Dec 2024 18:13:51 +0000 (18:13 +0000)] 
Avoid a memset() when loading stat4 data. Add instrumentation to the same code.

FossilOrigin-Name: fa87355f6286be1e92f22a71cbfbfb13d1a478d5fb5b38abedbd78bf903171fa

6 months agoIncrease the maximum number of arguments on an SQL function to 1000 with the
drh [Thu, 12 Dec 2024 20:39:56 +0000 (20:39 +0000)] 
Increase the maximum number of arguments on an SQL function to 1000 with the
capability to increase it further up to 32767 using a compile-time option.

FossilOrigin-Name: 3c25c69c93e55738cdbfdd87fa3c879b878674973955490770f5e274da1ca9a4

6 months agoAdd extra logging for alternative stat4 code.
dan [Thu, 12 Dec 2024 19:20:40 +0000 (19:20 +0000)] 
Add extra logging for alternative stat4 code.

FossilOrigin-Name: 9dde0365cb1df8bded58791f6409db464c969a61bc3a1a5682b4c4438c36a598

6 months agoExperimental code to load stat4 data using a single pass.
dan [Thu, 12 Dec 2024 19:15:46 +0000 (19:15 +0000)] 
Experimental code to load stat4 data using a single pass.

FossilOrigin-Name: e0bcd30581b5b55abb0ba0f2855dbfa27f4e036b45423062402fe344db7bb070

6 months agoWhen a writer initializes a new *-shm file hash table, zero only the hash-table slots...
dan [Wed, 11 Dec 2024 20:42:29 +0000 (20:42 +0000)] 
When a writer initializes a new *-shm file hash table, zero only the hash-table slots, not the array of page numbers.

FossilOrigin-Name: ac5401c62b3ff03e43e01d066f4664491ce9b640ec64150a58b38839b4834afb

6 months agoFix a problem with the formatting of "slow schema" log messages. Also change logging...
dan [Tue, 10 Dec 2024 14:56:20 +0000 (14:56 +0000)] 
Fix a problem with the formatting of "slow schema" log messages. Also change logging version to v=17.

FossilOrigin-Name: df4183ace93b788b798b258274bf6b651906c9f1cf2af4983e447cdf52904523

6 months agoFix a problem with non-PASSIVE wal2 checkpoints sometimes taking the WRITER lock.
dan [Mon, 9 Dec 2024 21:26:21 +0000 (21:26 +0000)] 
Fix a problem with non-PASSIVE wal2 checkpoints sometimes taking the WRITER lock.

FossilOrigin-Name: 1a59cae3c31aea25cef3705cce2477e26515a0463cf9094bd29951899b758767

6 months agoUpdate logging (now v=16) to more closely analyze all attempts to load the main db...
dan [Fri, 6 Dec 2024 17:52:38 +0000 (17:52 +0000)] 
Update logging (now v=16) to more closely analyze all attempts to load the main db schema.

FossilOrigin-Name: 65b753735b8e8fb70d2b522d527426f1eb5c09339fb4b15cf69cbd2e595b160f

6 months agoGuard the x64 assembler in wal.c with "ifdef __x86_64__".
dan [Fri, 6 Dec 2024 09:36:28 +0000 (09:36 +0000)] 
Guard the x64 assembler in wal.c with "ifdef __x86_64__".

FossilOrigin-Name: 5fa1699e31856a6585cc59183641c4cc99e1ccd99c384d13e9c4442e9c07f41a

6 months agoAdd logging to report on occasions when loading the ANALYZE data is slow.
dan [Thu, 5 Dec 2024 19:45:14 +0000 (19:45 +0000)] 
Add logging to report on occasions when loading the ANALYZE data is slow.

FossilOrigin-Name: 5f9f6764e9dffef60213bbc9604940ddfc713436333c3f62ed8a090697fcbb1e

6 months agoUse an inline asm "ret stosp" instruction instead of a memset() when a writer is...
dan [Thu, 5 Dec 2024 16:52:52 +0000 (16:52 +0000)] 
Use an inline asm "ret stosp" instruction instead of a memset() when a writer is required to zero a hash table.

FossilOrigin-Name: c10fa6af8bd8d64a6e528f3e71999d1631e66a8dd483a83c1fc30d65ccaf0f6d

7 months agoTemporarily enable zeroing of wal2-mode hash tables within PASSIVE, as well as non...
dan [Wed, 4 Dec 2024 11:01:20 +0000 (11:01 +0000)] 
Temporarily enable zeroing of wal2-mode hash tables within PASSIVE, as well as non-PASSIVE, checkpoints.

FossilOrigin-Name: a97a2b0da1f9e93a7cf5a4f08ded96d0d3511f84329524b4805b7481393c397e

7 months agoUpdate logging version to "v=13".
dan [Thu, 28 Nov 2024 19:14:59 +0000 (19:14 +0000)] 
Update logging version to "v=13".

FossilOrigin-Name: 442167b86ad6b5a7ec4862ca91c3bb0b4b8e4843aa55193b96c2daadc2e7336b

7 months agoIn wal2 mode, attempt to zero old *-shm hash table pages within non-PASSIVE checkpoin...
dan [Thu, 28 Nov 2024 18:58:54 +0000 (18:58 +0000)] 
In wal2 mode, attempt to zero old *-shm hash table pages within non-PASSIVE checkpoints. This saves writers from having to do it.

FossilOrigin-Name: 40aafd458593c17ad19cd9b464edc92d914fca20bc1aa38bf7014bc9beb0e9d5

7 months agoAvoid ever logging times for ROLLBACK commands.
dan [Tue, 26 Nov 2024 17:30:15 +0000 (17:30 +0000)] 
Avoid ever logging times for ROLLBACK commands.

FossilOrigin-Name: bc7f7986ec115b3b89c48742da1bd1bb5fc5e7a4f9b7f35623404d546437d687

7 months agoLogging enhancements. And mark logs v=12.
dan [Wed, 20 Nov 2024 20:26:59 +0000 (20:26 +0000)] 
Logging enhancements. And mark logs v=12.

FossilOrigin-Name: 853f9cf453d13cf826443b0d27331e1f4e9e06f9f4ce674f22ccadad86e20937

7 months agoExperimental change to omit writing frame checksums to the wal file.
dan [Wed, 20 Nov 2024 18:49:01 +0000 (18:49 +0000)] 
Experimental change to omit writing frame checksums to the wal file.

FossilOrigin-Name: 4d3706727005397c3c9006b9ad9a2645b09533b02735ea68974c4f2df4c2e853

7 months agoUpdate logging version to "v=11". This should have been part of the previous commit.
dan [Wed, 20 Nov 2024 17:47:40 +0000 (17:47 +0000)] 
Update logging version to "v=11". This should have been part of the previous commit.

FossilOrigin-Name: e6663fab61cbcb6e7955ab726821831dd55cc210550d74327265210e5bb93c2a

7 months agoExtra logging for the freelist and hash table components of COMMITs of BEGIN CONCURRE...
dan [Tue, 19 Nov 2024 17:32:03 +0000 (17:32 +0000)] 
Extra logging for the freelist and hash table components of COMMITs of BEGIN CONCURRENT transactions.

FossilOrigin-Name: 2ba41da8c437e466c71f65d67a615293efb5a2d9da9b6e9cbb7b296221d4104a

7 months agoIncrease maximum length of sqlite3_log() messages to 700 bytes. Mark log messages...
dan [Wed, 13 Nov 2024 14:42:32 +0000 (14:42 +0000)] 
Increase maximum length of sqlite3_log() messages to 700 bytes. Mark log messages as v=10.

FossilOrigin-Name: 35aa893d4537d0b3605084a1f2f5529794e82af59b8893053815d3fcb4719a27

7 months agoOptimize deferred allocation of pages on this branch by avoiding BTALLOC_LE.
dan [Wed, 13 Nov 2024 11:12:30 +0000 (11:12 +0000)] 
Optimize deferred allocation of pages on this branch by avoiding BTALLOC_LE.

FossilOrigin-Name: e0c0176793d41bef30e093975a87170981277dac20cde08e0fd3e0b6f40dca2f

7 months agoEven more detailed logging of slow COMMIT statements.
dan [Fri, 8 Nov 2024 17:09:34 +0000 (17:09 +0000)] 
Even more detailed logging of slow COMMIT statements.

FossilOrigin-Name: 3a45387a09398db8efdb2b6ecd773fa30970e61e5242823e04a2e968d1c93c10

8 months agoUpdate log messages to say "v=8" instead of "v=7".
dan [Fri, 1 Nov 2024 15:25:34 +0000 (15:25 +0000)] 
Update log messages to say "v=8" instead of "v=7".

FossilOrigin-Name: 492a0a85438586a8ccd9629239304f4df3f2c6391ec05dd9837b7a553313d632

8 months agoStill more logging, this time focused on the sqlite3WalFrames() function.
dan [Fri, 1 Nov 2024 15:20:39 +0000 (15:20 +0000)] 
Still more logging, this time focused on the sqlite3WalFrames() function.

FossilOrigin-Name: 52d332f0c7780acabb6a06b5fe14f654e98b64dbbba9984fb18913a97ed7fab6

8 months agoAdd extra logging to analyze COMMIT commands.
dan [Wed, 30 Oct 2024 18:24:33 +0000 (18:24 +0000)] 
Add extra logging to analyze COMMIT commands.

FossilOrigin-Name: 7dbb43bd307b5e297e6b2deac4e1d73d8cd68e37d880a5ecf5a3918a53e99d9d

8 months agoUpdate special logging messages on this branch to say "v=6" instead of "v=5".
dan [Fri, 25 Oct 2024 18:37:00 +0000 (18:37 +0000)] 
Update special logging messages on this branch to say "v=6" instead of "v=5".

FossilOrigin-Name: af4e778bd3bdf30cac3d9a6266f105a8cd71f947b8d71249ef74b8fdc0505dd7

8 months agoReduce the number of malloc()/free() calls that may occur when a BEGIN CONCURRENT...
dan [Fri, 25 Oct 2024 18:24:53 +0000 (18:24 +0000)] 
Reduce the number of malloc()/free() calls that may occur when a BEGIN CONCURRENT transaction is committed.

FossilOrigin-Name: fcd68bebf27e10e4e49efad220c9f53b7a109696d8b41e24f88c02460197b93f

8 months agoExtra logging to debug slow commit statements.
dan [Wed, 23 Oct 2024 17:16:59 +0000 (17:16 +0000)] 
Extra logging to debug slow commit statements.

FossilOrigin-Name: 9cafae1fff34ff45772910d6f2a19d08038edea4327234f577f6da30e5baa558

8 months agoAdd still more logging to determine why schema loads are so slow in some circumstances.
dan [Tue, 22 Oct 2024 16:26:14 +0000 (16:26 +0000)] 
Add still more logging to determine why schema loads are so slow in some circumstances.

FossilOrigin-Name: d02ec06e5bde7c8dc0f21ca2bfc44597aca015854d5656f851f4518476d04381

8 months agoAdd extra logging to SQL statements used to load the database schema on this branch...
dan [Mon, 21 Oct 2024 11:49:04 +0000 (11:49 +0000)] 
Add extra logging to SQL statements used to load the database schema on this branch. This requires SQLITE_ENABLE_STMT_SCANSTATUS.

FossilOrigin-Name: 08e1dea9c070c9a2d668d39ceb153bc8b6d172e7273f6564a374c43055e84461

8 months agoFix a typo in the previous commit.
dan [Thu, 10 Oct 2024 15:28:18 +0000 (15:28 +0000)] 
Fix a typo in the previous commit.

FossilOrigin-Name: 6deb4794f8e24dbb946069de1e5c34fbcd4734162002f3bc7deb1a3f69adec05

8 months agoAdd extra logging points to the code on this branch.
dan [Thu, 10 Oct 2024 14:31:37 +0000 (14:31 +0000)] 
Add extra logging points to the code on this branch.

FossilOrigin-Name: f29ff2f308d7f7c757a8bdf9624fadbda55bd5291c18268e10d3bb7e311b229e

8 months agoAdd logging to help analyze slow "PRAGMA cache_size = ?" statements.
dan [Tue, 8 Oct 2024 15:08:04 +0000 (15:08 +0000)] 
Add logging to help analyze slow "PRAGMA cache_size = ?" statements.

FossilOrigin-Name: cd6f585cadfe40778c3bf59dfbfa5f02c50cf5e10af1bd553cad4dfa56ea2249

8 months agoAdd logging to help analyze commit performance.
dan [Mon, 7 Oct 2024 16:11:10 +0000 (16:11 +0000)] 
Add logging to help analyze commit performance.

FossilOrigin-Name: c5391f2cc913a16695efb63f7d2320fc18b8aaefdbdffa087a2e3d26b24dc218

10 months agoUpdate the bedrock branch to include all of the latest trunk enhancements.
drh [Wed, 4 Sep 2024 16:54:56 +0000 (16:54 +0000)] 
Update the bedrock branch to include all of the latest trunk enhancements.

FossilOrigin-Name: cf8f155280100c1a5b79b118875a93686a554d8be55114277f4f7b20cfd7835a

10 months agoMerge all the latest trunk enhancements into the wal2 branch.
drh [Wed, 4 Sep 2024 16:46:09 +0000 (16:46 +0000)] 
Merge all the latest trunk enhancements into the wal2 branch.

FossilOrigin-Name: 9f530343717a891d57013c5fb58f30e422da391815a7cc79ed8beb1196c89faa

10 months agoFix a bug in the parsing of some corner-case JSON PATH strings that contain
drh [Wed, 4 Sep 2024 16:01:44 +0000 (16:01 +0000)] 
Fix a bug in the parsing of some corner-case JSON PATH strings that contain
escaped double-quotes.

FossilOrigin-Name: 60ac55c4b76355aaf7cbde38bf1f6082ff5612bf4ffc49ab69d00fd4e3d64e64

10 months agoPut a proper shebang at the start of the testrunner.tcl script and make the
drh [Wed, 4 Sep 2024 13:42:19 +0000 (13:42 +0000)] 
Put a proper shebang at the start of the testrunner.tcl script and make the
script executable.

FossilOrigin-Name: c0c6e9abebf76358625f30a179658319b260baba6eded2a4c5ad356143e36f97

10 months agoMake extra efforts to delete the over-size directory names created by
drh [Wed, 4 Sep 2024 13:09:58 +0000 (13:09 +0000)] 
Make extra efforts to delete the over-size directory names created by
the win32longpath.test module.

FossilOrigin-Name: 3c8035ed3f023fb31f65f298fb9ce19d4fa7a5511bd90877b27969f5f0892472

10 months agoAdd the "joblist" command to testrunner.tcl
drh [Wed, 4 Sep 2024 11:22:47 +0000 (11:22 +0000)] 
Add the "joblist" command to testrunner.tcl

FossilOrigin-Name: f64469f4806d4d5d7103c171a37a542c7aab9db09a226bccd8411e9ccd55353d

10 months agoEnhance the "errors" command in testrunner.tcl so that it accepts the
drh [Tue, 3 Sep 2024 16:04:34 +0000 (16:04 +0000)] 
Enhance the "errors" command in testrunner.tcl so that it accepts the
"-s" or "--summary" argument to see a list of failed jobs, and so that
an additional argument is a GLOB pattern that restricts the output to
jobs whose names match that pattern.

FossilOrigin-Name: dcbebe30f594a99e23b5ccd8d199b92118204a3e52e75c78d98c394601252e81

10 months agoFix ext/consio so that it works correctly with SQLITE_USE_ONLY_WIN32.
drh [Tue, 3 Sep 2024 14:15:57 +0000 (14:15 +0000)] 
Fix ext/consio so that it works correctly with SQLITE_USE_ONLY_WIN32.

FossilOrigin-Name: efc6f3d7e92a25f440fb8d392daf325af5ca7dca104a5bb4bd59f7df93af53b0

10 months agoIn testrunner.tcl, compile the Windows Default configuration using
drh [Tue, 3 Sep 2024 14:00:36 +0000 (14:00 +0000)] 
In testrunner.tcl, compile the Windows Default configuration using
SQLITE_ENABLE_STMT_SCANSTATUS.

FossilOrigin-Name: 49e8b1635f29d9fd0dc2ef6e312fd4129f2283f68e9423d95ff9b55077688ad7

10 months agoFix harmless compiler warnings in the percentile extension.
drh [Tue, 3 Sep 2024 12:41:21 +0000 (12:41 +0000)] 
Fix harmless compiler warnings in the percentile extension.

FossilOrigin-Name: c5557f281c6294b6db6682349d245feac7c6ce7f4f61356f486afdf186c566c4

10 months agoIn testrunner.tcl, allow setting njob to zero, which causes no new jobs
drh [Tue, 3 Sep 2024 10:53:32 +0000 (10:53 +0000)] 
In testrunner.tcl, allow setting njob to zero, which causes no new jobs
to be launched and for the process to shut down once all current jobs are
completed.

FossilOrigin-Name: 0ef65fd4ba17def4c13986365b3af300c4024725af4bc314845d1af8be568ab4

10 months agoCause cfGets() (under SQLITE_USE_ONLY_WIN32) to better emulate fgets().
larrybr [Tue, 3 Sep 2024 02:09:13 +0000 (02:09 +0000)] 
Cause cfGets() (under SQLITE_USE_ONLY_WIN32) to better emulate fgets().

FossilOrigin-Name: 2d783524d1671d988ebb1b21c83de99c9f335963b6c20cf4df612f58c13da913

10 months agoFix possible NULL pointer dereference following OOM in the new error reporting
drh [Mon, 2 Sep 2024 21:59:31 +0000 (21:59 +0000)] 
Fix possible NULL pointer dereference following OOM in the new error reporting
logic of the percentile extension.

FossilOrigin-Name: 7891a266c4425722ae8b9231397ef9e42e2432be9e6b70632dfaf9ff15300d2c

10 months agoFix a technically undefined signed integer overflow in fts5.
dan [Mon, 2 Sep 2024 18:41:59 +0000 (18:41 +0000)] 
Fix a technically undefined signed integer overflow in fts5.

FossilOrigin-Name: e6bec37ea1ca51e1d048941ce4c5211d8fc5c5e3556a1441f9c79b036843f9e3

10 months agoMake the percential extension easier to incorporate as a built-in on Windows
drh [Mon, 2 Sep 2024 17:27:10 +0000 (17:27 +0000)] 
Make the percential extension easier to incorporate as a built-in on Windows
applications.

FossilOrigin-Name: 831e2be4117dc7f5113f66d3e484ca34e4405444ac7b0def12ee9a00608d40da

10 months agoRemove some debug/test code from percentile. Make the extension easier to
drh [Mon, 2 Sep 2024 14:46:56 +0000 (14:46 +0000)] 
Remove some debug/test code from percentile.  Make the extension easier to
statically link.

FossilOrigin-Name: 6e5f146e274b210749dd8923a2da56905eb098b5a66699ff9130e3e51b1ff662

10 months agoEnhance the percentile extension to support percentile_cont() and
drh [Mon, 2 Sep 2024 12:07:37 +0000 (12:07 +0000)] 
Enhance the percentile extension to support percentile_cont() and
percentile_disc().  Add support for ordered-set aggregate notation in
the parser when compiling with SQLITE_ENABLE_ORDERED_SET_AGGREGATES.  A
new function property SQLITE_SELFORDER1 must appear on any aggregate function
that wants to take advantage of the ordered-set aggregate notation.

FossilOrigin-Name: 557bd245ef24af15da1374762bbeb9b8b0241da06e604efdf00d567a9ed09216

10 months agoImproved error messages on percentile functions. More tests cases for ordered-set-agg
drh [Mon, 2 Sep 2024 11:17:04 +0000 (11:17 +0000)] 
Improved error messages on percentile functions.  More tests cases for
percentile and for ordered-set aggregates.

FossilOrigin-Name: e1bca168e70335fa2f9537632fd16e374c566a564fab4974c0b8f61cb63d08ce

10 months agoChange the name of the enabling compile-time macro to
drh [Mon, 2 Sep 2024 09:40:37 +0000 (09:40 +0000)] 
Change the name of the enabling compile-time macro to
SQLITE_ENABLE_ORDERED_SET_AGGREGATES.

FossilOrigin-Name: 3b1cdddf8339cc339ec74cd8be2bfa42e62b500048a444eb9e5d9817bc4702ae

10 months agoMore internal documentation improvements.
drh [Sun, 1 Sep 2024 23:56:14 +0000 (23:56 +0000)] 
More internal documentation improvements.

FossilOrigin-Name: 8b91b74931c36e1955ef933a07d8ec40c8b54c882efe7084d179168867c5244f

10 months agoImproved documentation of recent enhancements to the percentile extension.
drh [Sun, 1 Sep 2024 23:47:20 +0000 (23:47 +0000)] 
Improved documentation of recent enhancements to the percentile extension.

FossilOrigin-Name: 51e7b4c9cf19a5986432a76c5fd30cef715c170a403d7b4304a8c5888c445a91

10 months agoThe WITHIN GROUP (ORDER BY ...) syntax is now a compile-time option:
drh [Sun, 1 Sep 2024 23:27:34 +0000 (23:27 +0000)] 
The WITHIN GROUP (ORDER BY ...) syntax is now a compile-time option:
SQLITE_ENABLE_ORDERED_SET_FUNCS.  There is no increment in the code size
if the option is omitted.

FossilOrigin-Name: c9367e2532d653738af27c4d92810eb648a9e12f72d7223017c87cb0dddc6804

10 months agoImplement percentile_cont() and percentile_disc().
drh [Sun, 1 Sep 2024 20:24:24 +0000 (20:24 +0000)] 
Implement percentile_cont() and percentile_disc().

FossilOrigin-Name: b1a93f67d6b21df6fe3247c9333fead61dd425574f66ea3eb06b80c2b06f616a

10 months agoNo prepare-time penality for ordered-set aggregates for applications that
drh [Sun, 1 Sep 2024 19:19:26 +0000 (19:19 +0000)] 
No prepare-time penality for ordered-set aggregates for applications that
do not use them.

FossilOrigin-Name: e070c16d2183312e416ff6af770346041e4d3836c4db2c9ea6049f63fb0eaa07

10 months agoMerge fixes from trunk into the ordere-set-agg branch.
drh [Sun, 1 Sep 2024 18:57:52 +0000 (18:57 +0000)] 
Merge fixes from trunk into the ordere-set-agg branch.

FossilOrigin-Name: 7528ddcfdf155116353266e00e6408c526e29f04cb00ca2d9e84b105329b17c0

10 months agoImproved sort function in the percentile extension.
drh [Sun, 1 Sep 2024 18:54:31 +0000 (18:54 +0000)] 
Improved sort function in the percentile extension.

FossilOrigin-Name: 9f84e8d59bcda642e732565e840f6a880a01b2fc65af2651248f6a8a6e1cb65a

10 months agoFix to the quicksort algorithm in the percentile extension.
drh [Sun, 1 Sep 2024 10:52:20 +0000 (10:52 +0000)] 
Fix to the quicksort algorithm in the percentile extension.

FossilOrigin-Name: 54313f74b24c46f1afa1ff082ef569fa46938527095be358015e7047e17702ac

10 months agoAdd error checking: Do not allow functions other than those in the
drh [Sat, 31 Aug 2024 22:22:24 +0000 (22:22 +0000)] 
Add error checking: Do not allow functions other than those in the
percentile extension to use the ordered-set aggregate notation.

FossilOrigin-Name: 317d901429303340290334dbe7680a36339df0a50b586e3f71b6c5e5eba6d411

10 months agoDemonstration of how ordered-set aggregates might be parsed and integrated
drh [Sat, 31 Aug 2024 20:09:37 +0000 (20:09 +0000)] 
Demonstration of how ordered-set aggregates might be parsed and integrated
into the existing parse tree, should we decide to support them.

FossilOrigin-Name: ef9777890001ba0122d3add799795e118fd87243f42731ab84d4748b67605647

10 months agoInclude percentile() and merge() in the fuzzcheck test utility.
drh [Sat, 31 Aug 2024 19:24:17 +0000 (19:24 +0000)] 
Include percentile() and merge() in the fuzzcheck test utility.

FossilOrigin-Name: d1d0942a947803d45a1fd9068f3518cf412178b6b9bafcb82db44c52d5820c11

10 months agoOmit the percentile_cont() function added by [095c22e62248f8ef] (and not yet
drh [Sat, 31 Aug 2024 18:35:10 +0000 (18:35 +0000)] 
Omit the percentile_cont() function added by [095c22e62248f8ef] (and not yet
released) since its usage conflicts with the PG percentile_cont() function.

FossilOrigin-Name: 3fe0a852978f3f1218e37a58f0d3b54016d4116a3301aa32efa7c4c12c767755

10 months agoAllow percentile() and median() to act as window functions.
drh [Sat, 31 Aug 2024 18:08:31 +0000 (18:08 +0000)] 
Allow percentile() and median() to act as window functions.

FossilOrigin-Name: 94cf96af8fee55449080655bddf81cbf5c078a02d7bb5dd7e4903b36f83a8c07

10 months agoStill more test cases. percentile-window
drh [Sat, 31 Aug 2024 17:50:06 +0000 (17:50 +0000)] 
Still more test cases.

FossilOrigin-Name: f09904608195dac38172b0dd4dcab3190f33c116d468beff27f913a7433b400e

10 months agoAdd more test cases.
drh [Sat, 31 Aug 2024 17:27:55 +0000 (17:27 +0000)] 
Add more test cases.

FossilOrigin-Name: 0d0e5456793b4bef673ebc7fcc1c393a6d3c817363d948ddfe06d60eab56dc24

10 months agoAvoid unnecessary sort operations when running one of the percentile
drh [Sat, 31 Aug 2024 16:55:14 +0000 (16:55 +0000)] 
Avoid unnecessary sort operations when running one of the percentile
aggregates as a window function.

FossilOrigin-Name: 5d311536211eb1e3c887ceb7e6516d3900e6eebbccc8c445dd43cdd556182728

10 months agoTest cases added.
drh [Sat, 31 Aug 2024 15:02:07 +0000 (15:02 +0000)] 
Test cases added.

FossilOrigin-Name: 25e68229843cc84978955817285550085d1306ba4ce3b0517dd00e5d05b9ae0a

10 months agoEnhance the percentile() and median() extension functions so that they can be
drh [Sat, 31 Aug 2024 14:31:17 +0000 (14:31 +0000)] 
Enhance the percentile() and median() extension functions so that they can be
window functions.

FossilOrigin-Name: 4d0e3df4b9c609755977b8a462126242d2be1310c0122a8d4ba76d98d32a7230

10 months agoDo not fail the omittest if ICU libraries are not installed.
drh [Fri, 30 Aug 2024 17:33:25 +0000 (17:33 +0000)] 
Do not fail the omittest if ICU libraries are not installed.

FossilOrigin-Name: ddc55efd2d59df3f20743b0533550436da945453c069025a3f871d28d40e13d4

10 months agoNew makefile target: "tidy". The "tidy" target removes all build products
drh [Fri, 30 Aug 2024 16:51:41 +0000 (16:51 +0000)] 
New makefile target: "tidy".  The "tidy" target removes all build products
be leaves behind test results.  The "clean" target has been enhanced to do a
better job.  The tool/omittest.tcl script is rewritten to work on the
configure-generated Makefile and to require no arguments.

FossilOrigin-Name: e48add02695a41b26a04e7942b5333e2bf4dc5598e363367aea3a4690982667d

10 months agoA couple of #defines so that the build work with SQLITE_OMIT_FLOATING_POINT. makefile-improvements
drh [Fri, 30 Aug 2024 16:43:36 +0000 (16:43 +0000)] 
A couple of #defines so that the build work with SQLITE_OMIT_FLOATING_POINT.

FossilOrigin-Name: be768f80c703ac1645251ccbac83e07b3ea4cc231c8ea7e66374a4f78361f10b

10 months agoRework the tool/omittest.tcl script so that it works with the
drh [Fri, 30 Aug 2024 16:24:49 +0000 (16:24 +0000)] 
Rework the tool/omittest.tcl script so that it works with the
configure-generated Makefile, and requires no arguments.
Update the configure-generated Makefile with a new "tidy" target which
is like "clean" except that is preserves test logs.  Use "make tidy" to
force everything to be recompiled from scratch without destroying logs.

FossilOrigin-Name: 99491df19d68df1f0515bd5ec9240ef3dd6e0fa38a6c837a38a16a873f8e2cbb

10 months agoImprovements to "make clean" on unix.
drh [Fri, 30 Aug 2024 12:10:28 +0000 (12:10 +0000)] 
Improvements to "make clean" on unix.

FossilOrigin-Name: a1d775f07528192b09566ff1546b067ffbee0db5812e424e6b7f3cc33a67dc83

10 months agoIn the testrunner.tcl status report, try to provide a rough estimate of
drh [Fri, 30 Aug 2024 01:11:19 +0000 (01:11 +0000)] 
In the testrunner.tcl status report, try to provide a rough estimate of
the time remaining.

FossilOrigin-Name: 90bc616d20e8c247691c45de2a28d41c1632b21152dc34253eefc179a90ab31f

10 months agoMerge the latest trunk enhancement into the bedrock branch through the wal2
drh [Thu, 29 Aug 2024 23:43:55 +0000 (23:43 +0000)] 
Merge the latest trunk enhancement into the bedrock branch through the wal2
intermediary.

FossilOrigin-Name: ff94464cec871bd90634e7e1e4252954eb68e77037dd290b0fbf7747c9b19308

10 months agoMerge all the latest trunk enhancements into the wal2 branch.
drh [Thu, 29 Aug 2024 23:33:17 +0000 (23:33 +0000)] 
Merge all the latest trunk enhancements into the wal2 branch.

FossilOrigin-Name: dfecc79c8fa4b39e5211f1a7051783c750bb7e1132f3e3a60f8ae0837dbbe486

10 months agoSync the autoconf/Makefile.msc with the main ./Makefile.msc
drh [Thu, 29 Aug 2024 23:32:16 +0000 (23:32 +0000)] 
Sync the autoconf/Makefile.msc with the main ./Makefile.msc

FossilOrigin-Name: 9de47c3611ca05e03a661807a06c6c5c0b5c6548ea7a8d73cb63832d2dff9d0e

10 months agoAll makefiles are responsive to OPTIONS=... command-line arguments, and add
drh [Thu, 29 Aug 2024 18:32:56 +0000 (18:32 +0000)] 
All makefiles are responsive to OPTIONS=... command-line arguments, and add
the RHS value of OPTIONS= to builds and to lemon and other build steps that
might respond to -D or -U options.

FossilOrigin-Name: 854b3776ee1fcaa5931e3a0ed104978ca350d218e553586d1c40c2420e1be498

10 months agoFix a case where the BTCF_AtLast flag was being left set incorrectly. This was causin...
dan [Thu, 29 Aug 2024 16:27:57 +0000 (16:27 +0000)] 
Fix a case where the BTCF_AtLast flag was being left set incorrectly. This was causing obscure window function queries to fail.

FossilOrigin-Name: e042eb024738a83eed92cd2dfac3d2a50d2589715a3d81b1a494564dd7d8e7fa

10 months agoDo not allow sqlite3_blob_open() to work on a any table that contains
drh [Wed, 28 Aug 2024 19:13:16 +0000 (19:13 +0000)] 
Do not allow sqlite3_blob_open() to work on a any table that contains
generated columns, even columns of the table which are not generated themselves,
because such columns might be part of the expression of a STORED column.
This restriction could be relaxed some, but that would be a lot of code
for something that nobody ever uses.

FossilOrigin-Name: 6e84947123339f0ea2b7dabc6134a621eed09317f81647f15870ed50a0f7d1bc

10 months agoFix a dropped error code in fts5.
dan [Wed, 28 Aug 2024 15:54:46 +0000 (15:54 +0000)] 
Fix a dropped error code in fts5.

FossilOrigin-Name: df55502e4f412e5b1daccf82f11fa4eb932047d9972dcd16e36be00cf09f78e1

10 months agoUpdate the README.md file to recommend running "devtest" instead of "mdevtest".
drh [Wed, 28 Aug 2024 13:55:46 +0000 (13:55 +0000)] 
Update the README.md file to recommend running "devtest" instead of "mdevtest".

FossilOrigin-Name: eb016f66ea2c7ebacf8c57495843db3414602d062e4a430f2cc603c88b10c3f9

10 months agoMaybe [7420b13238da4e6b] was not such a good idea. Restore "make test" so
drh [Wed, 28 Aug 2024 13:51:51 +0000 (13:51 +0000)] 
Maybe [7420b13238da4e6b] was not such a good idea.  Restore "make test" so
that it works as before - running a single-threaded test over the source tree
with options specified by ./configure and similar.  Instead, change the
"make devtest" target so that runs the automated multi-threaded tests on
a standard configuration.

FossilOrigin-Name: dc9fee980d4f4b5a569628702e52cef9e5d8e6c69c2b84546dce47e3e514775e

10 months agoMinor wording change on testrunner output.
drh [Wed, 28 Aug 2024 13:34:20 +0000 (13:34 +0000)] 
Minor wording change on testrunner output.

FossilOrigin-Name: 115e68597957a9ee80de7f554ee3768c992051687c8f07eaf3a9fcaab7efd44e