]> git.ipfire.org Git - thirdparty/sqlite.git/commit
If a table has one or more rows and it has a partial index has zero rows, optimize-after-shrink
authordrh <>
Mon, 19 Feb 2024 16:22:58 +0000 (16:22 +0000)
committerdrh <>
Mon, 19 Feb 2024 16:22:58 +0000 (16:22 +0000)
commite7bdb2172c717f7ba64e15fb65b930524e759d71
tree4df3b8b0a318608261e4f2f2ec8ae120d7508e59
parent6c6356f7f2f3c6e717d445d117407e2edecccac5
If a table has one or more rows and it has a partial index has zero rows,
still make an entry in the sqlite_stat1 table for the partial index, so that
we know that "PRAGMA optimize" does not need to redo the whole table.

FossilOrigin-Name: e147b18991dd462fff367442acb0504fdf193a31843ed34ec8c1ced30747bf8a
ext/session/sessionstat1.test
manifest
manifest.uuid
src/analyze.c
src/btree.c
src/pragma.c
src/vdbe.c