summaryrefslogtreecommitdiff
path: root/src/analyze.c
AgeCommit message (Expand)AuthorLines
2026-06-19Further refinements and uses for sqlite3_result_str().drh-2/+2
2026-06-16Fix instances of potential buffer overflow caused by loading the contents of ...dan-4/+4
2025-05-14Back out the "low-quality index" query planner hack of check-indrh-10/+0
2025-02-22Tamp down various harmless compiler warnings. Use "int" in places insteaddrh-1/+1
2025-02-17Code changes that make it easier to prove that no 32-bit integer overflowsdrh-1/+1
2025-02-07Further reduction in the amount of memset() needed to initialize the Parsedrh-1/+2
2024-10-17Fixes from code inspection:drh-2/+2
2024-08-16Ensure that memory allocations in ANALYZE are always 8-byte aligned in orderdrh-8/+11
2024-07-17Add extra assert() statements to the fixes on this branch.dan-0/+1
2024-02-28Add in a VdbeCoverage() macro needed by STAT4 that should have been part ofdrh-0/+1
2024-02-19If a table has one or more rows and it has a partial index has zero rows,drh-31/+43
2024-01-01Remove some unnecessary computations from ANALYZE so that ANALYZE runs withdrh-5/+11
2024-01-01Extra steps taken to avoid using low-quality indexes in a query plan.drh-0/+10
2023-06-10Extra space to prevent a buffer overread on corrupt STAT4 records.drh-3/+4
2023-05-03Do not overflow the Index.aSample[] array if the same index appears indrh-0/+10
2023-05-03Do not even attempt to load the sqlite_stat4 table if the use of STAT4 is drh-1/+2
2023-04-22The sqlite_stat4.idx field is case insensitive. It should work even ifdrh-1/+1
2023-03-29New #ifdefs to omit code that is unused except under STAT4.drh-0/+4
2023-03-26Improvements to register allocation, especially in the ANALYZE command.drh-15/+11
2023-03-26Disable factoring of constant values during ANALYZE. This is a temporarydrh-0/+1
2023-03-25Add the tag-20230325-1 comment that was omitted from the prior check-in.drh-1/+1
2023-03-25The fix at [2bf5413dc2c19d5f] was incomplete in that it failed to cleardrh-0/+15
2023-03-24Fix byte-code register allocation in ANALYZE for STAT4 when there multipledrh-2/+23
2023-02-01New assert() statements to verify that sqlite3DeleteIndexSamples() is alwaysdrh-1/+3
2022-10-13This experimental branch attempts to use columns for an index-on-expressiondrh-0/+1
2022-04-27When computing STAT1 values using ANALYZE, if a ratio comes out to be betweendrh-1/+7
2022-02-25Remove unused P4 types on the Opcode object. Saves a few bytes of codedrh-1/+1
2021-10-11Use the IsOrdinaryTable() macro, not a test of tnum, to distinguish tablesdrh-1/+1
2021-10-03Add the sqlite3ResultStrAccum() internal interface to simplify thedrh-31/+13
2021-10-01Fix harmless compiler warnings.drh-1/+0
2021-09-24Ensure that sqlite_stat1 and sqlite_stat4 are ordinary tables (not views ordrh-2/+8
2021-08-02Refactor field names in the Column object, zCnName and zCnColl, to make themdrh-1/+1
2020-10-22Sometimes it makes sense to do a full table scan rather than try to usedrh-0/+1
2020-07-22Continuing work toward supporting unsigned 32-bit page numbers.drh-4/+4
2020-05-30Improved VDBE comments on the ANALYZE code generator. This changedrh-3/+27
2020-05-04Fix harmless compiler warnings.drh-1/+1
2020-05-02Add a missing VdbeCoverage() macro.drh-0/+1
2020-04-01Simple fixes to PRAGMA analysis_limit.drh-7/+3
2020-03-31Add "PRAGMA analysis_limit=N;" to limit the number of rows visited bydrh-24/+25
2020-03-18Fix the build for when SQLITE_ENABLE_STAT4 is defined.drh-0/+2
2020-03-18Add the SQLITE_ANALYZE_LIMIT compile-time option (expected to be temporary)drh-11/+43
2020-03-17Provide an estimated row count to stat_init() for STAT1 analysis.drh-33/+32
2020-03-17Remove the SQLITE_OMIT_BTREECOUNT option. Btree count is required.drh-6/+8
2020-03-17Improved bytecode comments for the ANALYZE command.drh-1/+3
2020-03-10Background work for experiments trying to enhance ANALYZE so that it runsdrh-39/+51
2020-03-09Cleaner separation of the STAT4-specific logic in the implementation ofdrh-62/+61
2019-10-30Simplify the bytecode generation for SQL function calls such that thedrh-17/+14
2019-10-19Refactor names of column index transformation functions, for clarity.drh-1/+1
2019-10-05Performance optimization to the lookaside-memory disabling mechanism.drh-2/+2
2019-08-15Ensure that the optional "sz=N" parameter that can be manually added to thedrh-1/+3