Install and load
Run these commands in a Haybarn SQL session. The extension is available from the community repository.
INSTALL table_inspector FROM community;
LOAD table_inspector FROM community;
Using upstream DuckDB? Follow the maintainer’s installation instructions.
Usage example
List all attached persistent databases with file sizes
-- List all attached persistent databases with file sizes
SELECT * FROM inspect_storage();
-- List all tables with their persisted data size
SELECT * FROM inspect_database();
-- Per-segment storage details for a specific column
SELECT * FROM inspect_column('my_table', 'my_column');
-- High-level storage breakdown
SELECT * FROM inspect_block_usage();
Provided by dentiny. Not yet verified on Haybarn 2.0.0.
Sample data & setupAbout this extension
A DuckDB extension that provides observability into DuckDB storage internals. It helps users understand storage usage at the database, table, and column levels, and addresses issues like unexpected file size or poor compression.
Project overview from the community descriptor.
Documentation and resources
Project and build details
- Repository
- dentiny/duckdb-table-inspector
- License
- MIT
- Maintainers
- Andrewtangtang, dentiny
- Written in
- C++
- Build source
48053bb7f6d8- Build definition
- Community descriptor