Database storage explorer
Run the profiling query in PostgreSQL, load its JSON result, then click the treemap to explore schemas, tables, partitions, indexes and TOAST.
Read-only profiling query · PostgreSQL 15+
Run in your database client and copy the single storage_profile JSON value. In psql, save the SQL and use psql -X -A -t -f profile.sql -o storage.json. Reads catalogs and relation-file sizes; does not scan table rows. Many relations can take time; set a suitable statement timeout in your client.
Paste or open a storage profile
Processed locally. No database connection, uploads or browser persistence. Export the profile to keep a copy. Names and metadata are included; table data is not.
Click a tile to zoom in. Use the path or Up one level to zoom out. Tile area uses relative size; exact bytes are in the table. Tiny and zero-size objects remain available below.
Objects at this level
Accounting and capture notes
Schema totals follow physical ownership. A partition in another schema stays in that schema and links to its parent; it is not counted twice under the parent’s schema. Within a schema, declarative partitions nest under their table. Traditional inheritance tables remain separate.
Table main, free-space, visibility and unlogged initialization forks are separate from indexes. TOAST includes its own indexes and is counted only once under the owning table. Partitioned table/index parents and foreign tables have no local relation storage; their descendants are physical objects. A partitioned index links to its index partitions in the details.
Profiled relation bytes are a subset of the whole-database size reading. Excluded catalogs, temporary/shared relations and other database files can explain a gap. WAL, server disk free space, remote foreign-table storage, backups and filesystem overhead are not measured. These sizes are not a bloat estimate. Live file changes and DDL can affect capture consistency; retry if objects disappear.
Byte totals use exact integers. JSON numbers beyond JavaScript’s safe integer range are rejected; the query emits byte strings. No row data or query text is collected. Public screenshots/demo values are illustrative.
PostgreSQL references: size functions · partition relationships.