drh
410a3bafed
Improved detection of invalid command-line arguments to the showdb and
...
showwal debugging utility programs.
FossilOrigin-Name: 75cdaafc77b8a1efc84e71e90470994227f376e7d7de34c813e75dcadbb9f268
2023-02-03 12:03:56 +00:00
mistachkin
2b5fbb2836
Fix harmless compiler warnings seen with MSVC.
...
FossilOrigin-Name: a9bfb621091b6d92d1caeb69134d3809d9e0b43fe764608c5995db277ac785be
2021-12-31 18:26:50 +00:00
larrybr
d95a652025
Avoid ominous warning in showdb.c
...
FossilOrigin-Name: f8d7ac0104b76555142ce0d32714594f42d19b311dce2f77f42f92756b5e0c93
2021-06-16 13:26:40 +00:00
drh
26ec568d28
Try to avoid a double-free in the showdb utility program when running
...
pgidx on a corrupt database.
See [forum:/forumpost/a60ea5a4d4|forum post a60ea5a4d4] for context
FossilOrigin-Name: e3188a866362894d98521b3006fb5b9a63fe4a3bb2ff4f1b58acb6eb4e52da8f
2021-06-08 17:56:16 +00:00
drh
2f40dc9884
Better error messages on showdb.
...
FossilOrigin-Name: 7e18e114b245d17aa259ea9ab42752ccc9ad5303bbac8d8e46928dd10319f545
2021-04-27 00:05:03 +00:00
drh
19a7f72ce2
Improved robustness of the "showdb" debugging program when it is parsing
...
corrupt database files.
FossilOrigin-Name: 3eabac2ee50fd70b22a927d3d2934718a15e1f666d8d271b854579156c8b01de
2021-04-26 23:57:02 +00:00
drh
55550b7602
Enhance showdb to be 32-bit clean.
...
FossilOrigin-Name: a8200327d4e8e78abef09c64345e0036f730fbbb20ae88935ef6c9972e6c7d5e
2020-07-22 11:42:50 +00:00
drh
067b92ba00
Extend the refactoring into extensions. Clean up stray newlines.
...
FossilOrigin-Name: 7a876209a678a34c198b54ceef9e3c041f128a14dc73357f6a57cadadaa6cf7b
2020-06-19 15:24:12 +00:00
drh
c1f73e29bf
For the showdb utility program, more accurate detection of when the database
...
is in autovacuum mode for the "pgidx" subcommand.
FossilOrigin-Name: 9ce2192b81a81bb8928e3184664694ed2f863ce41c2777cdc35e6b61486aea46
2020-01-14 13:24:14 +00:00
drh
25f933ad93
In the "pgidx" report from "showdb", also show the number of rows on each
...
database btree page.
FossilOrigin-Name: 2bda9dc41c07092ae37d0c6001c1271e0622bfff7151201fc2bb4c95422c087b
2019-04-17 13:23:28 +00:00
drh
8083ef029f
In the "pgidx" command of the showdb utility, try to identify orphaned pages
...
and show when pages have been zeroed out.
FossilOrigin-Name: eed701ef919c70d891727250be6a1b626aeb894c562d221e319ae6d74fc71d3d
2019-04-17 12:29:45 +00:00
drh
aaad696141
Fix a potential 32-bit integer overflow in the "showdb" utility program when
...
it is trying to interpret a corrupt database file.
FossilOrigin-Name: 3803e750384ec37091b0a6c350f8ef67720e316fd6f74c95e3c5f231c4a01ceb
2019-03-05 23:49:17 +00:00
drh
970ea372c4
Fix a problem in the "showdb" utility that prevents it from correctly
...
decoding cells with no content beyond the record header.
FossilOrigin-Name: eb7680a1c047b2a33d6a0c9733fafaee11272377c627af10bbd541b6b7ed952b
2017-03-16 13:14:03 +00:00
mistachkin
77fac879d2
More harmless compiler warning fixes.
...
FossilOrigin-Name: ab69527c1608da0b668f3b49e967661dd99cc3d4
2016-04-12 20:05:06 +00:00
mistachkin
8ccdef6be4
Fix some more harmless compiler warnings.
...
FossilOrigin-Name: 18f531e1cf3c8bb986d912c9c5e3f5698360c93e
2015-12-16 22:06:52 +00:00
drh
c56fac7483
Fix uses of ctype functions (ex: isspace()) on signed characters in test
...
programs and in some obscure extensions. No changes to the core.
FossilOrigin-Name: 34eb6911afee09e779318b79baf953f616200128
2015-10-29 13:48:15 +00:00
dan
30c16ade95
Update the [showdb] program so that the database file is read directly (bypassing the SQLite VFS) only if the --raw option is specified. Otherwise, it is read using the default VFS. Also, the URI syntax may be used on the command line to specify the name of the database file to examine, so an alternative VFS may be requested using a URI parameter.
...
FossilOrigin-Name: e3c6d4b6e738c7ea015c0c809a5f7d1a94dda945
2015-08-04 15:29:43 +00:00
dan
8fb1bd2bc4
Update the [showdb] program so that the database file is read directly (bypassing the SQLite VFS) only if the --raw option is specified. Otherwise, it is read using the default VFS. An alternative VFS may be specified by specifying the database file to open using the URI syntax.
...
FossilOrigin-Name: 9699e9bd9a0e813d04c9d37422920670697c46ed
2015-08-04 15:23:49 +00:00
dan
871f6e34f6
Add the "--uri" option to utility program "showdb". This option causes showdb to use sqlite with the SQLITE_OPEN_URI option to open the database file, instead of opening it directly using the OS open() function.
...
FossilOrigin-Name: 90e34d5119f720496e86a3a6de7771ea87b7dcbb
2015-08-03 17:03:31 +00:00
drh
748c7357ab
Enhance the showdb utility program so that it can read the last partial page
...
of a truncated database file.
FossilOrigin-Name: 61d72e17916bc043ce53c64e5ba7050a9bae554e
2015-04-15 15:29:05 +00:00
mistachkin
44723ce096
Improvements to the MSVC build. Fix harmless compiler warnings. Enable use of 'stdcall'.
...
FossilOrigin-Name: 737630b87314283b2c38790ace9d25ec05f81f4a
2015-03-21 02:22:37 +00:00
dan
53d89cdfe9
Fix a typo in the showdb usage message.
...
FossilOrigin-Name: 6c66beae97ba1799c908d3a33371dedbc7f3f58c
2014-08-20 10:42:16 +00:00
mistachkin
ef60703e8f
Fix warnings related to having a 64-bit size_t.
...
FossilOrigin-Name: 29ac9336dba2b62d13315cecfc5c4a74cc54087a
2014-07-19 15:40:39 +00:00
mistachkin
35683976a4
Fix warnings caused by the previous commit.
...
FossilOrigin-Name: 89634a419d0c1ef899d0591c7c6ab9290bf665d2
2014-07-19 15:30:01 +00:00
mistachkin
0461cc4795
Fix harmless compiler warnings for MSVC in the showdb/showwal command line tools.
...
FossilOrigin-Name: 6dc7b2f119eb92da17c9e914bdad30a9ceaebdb5
2014-07-18 21:16:37 +00:00
drh
4bb77ecaa8
Add makefile targets for various diagnostic tools, such as showstat4.
...
Fix harmless compiler warnings in diagnostic tools.
FossilOrigin-Name: 6f86d89b8800c50035da7809bff941d08a33a6a2
2014-06-30 11:14:26 +00:00
drh
56e67dd7c7
Improved display of record data in the "NNNbd" output of the showdb.exe
...
utility program.
FossilOrigin-Name: f735c2497eaad15216c90c6b92fd5ceff460220a
2014-06-20 13:55:06 +00:00
drh
419e04010f
In the showdb.exe utility, for the "NNNbd" command, also show data fields
...
in addition to header fields on each record decoded. Improvements to
formatting.
FossilOrigin-Name: b451fe0cb92278deb7724e7995c1bd46ae83c119
2014-06-20 01:32:42 +00:00
drh
6a30cd5a44
Add the ability to decode the headers of individual cells, byte-by-byte,
...
in the "showdb.exe" utility.
FossilOrigin-Name: 306b461d7c0643b6ac4df944759ecc9ce8581634
2014-06-19 23:38:53 +00:00
drh
db718d8a3b
Fix harmless compiler warnings in the showdb utility program.
...
FossilOrigin-Name: 27c27daa3324b7c9323acfb972330367630bb64e
2014-01-28 20:36:22 +00:00
drh
4ee09b4bcc
Allocate 4 bytes of unused header space for an "Application ID". Add
...
the "PRAGMA application_id" command to set and query this identifier.
Add the "magic.txt" file to show how the posix file command might use
this application id.
FossilOrigin-Name: 28c9e7fdee2471a3026ee05ff591194d5f398131
2013-05-01 19:49:27 +00:00
drh
edf9a17b47
Simplified error message on the showdb utility.
...
FossilOrigin-Name: 8e0ced1af78d8c25a06423a8e7e337ac845155cc
2013-03-05 01:46:26 +00:00
drh
344a97b4b0
Enhance the showdb tool with options to show PTRMAP usage and content.
...
FossilOrigin-Name: 06bd91305ed6752315c5224be5f89e87cafa6687
2013-02-19 22:26:51 +00:00
drh
103a70fa62
Fix the showdb utility so that it displays the correct secondary usage of
...
a page when reporting on an error of a page being used more than once.
FossilOrigin-Name: 4507f0b3d409cd14bb2b9c29c92c76aa3ccb22b6
2013-02-19 20:25:16 +00:00
drh
00e637f0f0
Enhance the pgidx of the showdb utility so that it provides better information
...
even if the sqlite_master table is corrupt.
FossilOrigin-Name: d14263a719101d9c70054f2fc37e7788f73aab28
2013-02-19 18:45:11 +00:00
mistachkin
026262b4d8
Allow the showdb tool to be compiled with MSVC.
...
FossilOrigin-Name: dce391fc6302301e9ac53a5e4fc69f3bd7ba13a7
2012-10-13 09:31:20 +00:00
drh
5d4e1e1a50
If the SELECT that finds all root pages in the showdb fails, then report
...
an error.
FossilOrigin-Name: 4b16141501655faa23e7d34ad05570ea929abb7c
2012-04-03 15:10:34 +00:00
drh
3aeea46397
Enhance the "showdb" utility program with the "pgidx" option. Now requires
...
linkage with the amalgamation.
FossilOrigin-Name: 4b5737014c6f1638de9dc162463508ea7dfe333d
2012-04-03 14:59:50 +00:00
drh
47fb000854
Fix a usage comment typo in the showdb utility.
...
FossilOrigin-Name: 8744ced4ec495852b7aa2de573001cb4993e6328
2011-04-13 16:52:41 +00:00
drh
b7787eef7a
Enhance the showdb tool to show overflow page pointers at the end of
...
overflow cells.
FossilOrigin-Name: cda5eab18f48d3836dfd3e1f8c76e5f83b43485f
2011-01-06 15:51:18 +00:00
drh
5240aebdd8
Enhance the showdb tool to show a btree page layout. Add limit checks so that
...
overflow content does not overflow the buffer.
FossilOrigin-Name: 57ffa07e26a26d2f4527c8e6d7a9c1f48f380bf7
2011-01-06 01:26:38 +00:00
drh
b2c062df71
Fix a bug in the showdb utility: the serial types for BLOB and TEXT where
...
reversed.
FossilOrigin-Name: 65a13faf1e3cd18f3459cd410f65d334cfa7c376
2011-01-05 21:46:52 +00:00
drh
100335be77
Enhancements to the "showdb" debugging tool. Add the ability to display
...
the content of a cell.
FossilOrigin-Name: e9023a4e1edd552a81dcb2dcd5a996edfa167709
2011-01-05 21:20:52 +00:00
drh
7d105f87fc
Update the "showdb" debug utility to handle 64K page database and with
...
extra options to decode the freelist structure.
FossilOrigin-Name: 1070918e3b68c0ba5bfab11a97214b87c601f93c
2010-08-23 15:26:49 +00:00
drh
b28e59bbbb
Bug fix: Only trust the database size number at offset 28 if the change
...
counter at offset 24 matches the version number counter at offset 92.
This prevents corruption in the case of two applications writing to the
database where one is an older version of SQLite and the other is a newer
version.
FossilOrigin-Name: f80c3f922a114e738613955a939db46cf0847038
2010-06-17 02:13:39 +00:00
drh
c6d2b4a365
Identify the SQLite version meta-value entry in the db-header output of
...
showdb.
FossilOrigin-Name: 245d934b72cbc6e897193e7892195b6561995939
2010-04-26 17:30:52 +00:00
drh
7ecc14761e
Further enhancements to the showdb utility: A page number followed by "b"
...
causes a btree decoding to occur on the page.
FossilOrigin-Name: 2ff824e58ce8b8f605c809ac960dcbfc51c30e30
2010-04-26 16:47:12 +00:00
drh
562cedb185
Enhancements to the showdb.c utility program. Automatically detect the
...
page size and adjust the display accordingly. Add the "dbheader" display
option.
FossilOrigin-Name: 23eb408b5d08b89b41aaf245a7be8e235f30af8a
2010-04-26 15:44:07 +00:00
drh
e255086bb2
Update the showdb.c utility so that it works with databases larger than 4GiB. (CVS 6656)
...
FossilOrigin-Name: 9675b6223645fe01b202cbefae63f3209a50efcc
2009-05-19 03:21:52 +00:00
drh
c9ac5caa45
VACUUM works even on an empty database. Ticket #1512 . (CVS 2760)
...
FossilOrigin-Name: 1b6bf4188e8ebf55cf1972b7081f6d31bf525555
2005-11-04 22:03:30 +00:00