Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Backslash escaping is not working right in tostr.awk on the latest ubuntu. The easiest fix is to simply not use any backslashes in the spaceanal.tcl script. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
df550066657cb41bad34ac8e722b8148 |
User & Date: | drh 2011-08-31 17:46:50.850 |
Context
2011-08-31
| ||
18:04 | Only create the sqlite3OSTrace global variable if compiling with SQLITE_TEST. (check-in: 9e6a4c1473 user: drh tags: trunk) | |
17:46 | Backslash escaping is not working right in tostr.awk on the latest ubuntu. The easiest fix is to simply not use any backslashes in the spaceanal.tcl script. (check-in: df55006665 user: drh tags: trunk) | |
13:27 | Add checks to make sure cells in corrupt database files do not overflow a page when doing autovacuum. Problem detected by valgrind. (check-in: d0b347b412 user: drh tags: trunk) | |
Changes
Changes to tool/spaceanal.tcl.
︙ | |||
37 38 39 40 41 42 43 | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | - - + | # In-memory database for collecting statistics. This script loops through # the tables and indices in the database being analyzed, adding a row for each # to an in-memory database (for which the schema is shown below). It then # queries the in-memory db to produce the space-analysis report. # sqlite3 mem :memory: |
︙ | |||
289 290 291 292 293 294 295 | 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 | - - + + - - - - - - + + + + + + | if {$int_pages>0} { statline {Index pages used} $int_pages } statline {Primary pages used} $leaf_pages statline {Overflow pages used} $ovfl_pages statline {Total pages used} $total_pages if {$int_unused>0} { |
︙ | |||
448 449 450 451 452 453 454 | 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 | - - + - + - | Page size in bytes The number of bytes in a single page of the database file. Usually 1024. Number of pages in the whole file } |
︙ |
Changes to tool/tostr.awk.
1 2 3 4 5 | 1 2 3 4 5 6 7 8 | - | #!/usr/bin/awk # # Convert input text into a C string # { |