timescaledb_information.chunks view.
Samples
Arguments
The syntax is:Returns
If executed on a relation that is not a , the function returns
NULL.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get detailed information about disk space used by chunks
timescaledb_information.chunks view.
SELECT * FROM chunks_detailed_size('dist_table')
ORDER BY chunk_name, node_name;
chunk_schema | chunk_name | table_bytes | index_bytes | toast_bytes | total_bytes | node_name
-----------------------+-----------------------+-------------+-------------+-------------+-------------+-----------------------
_timescaledb_internal | _dist_hyper_1_1_chunk | 8192 | 32768 | 0 | 40960 | data_node_1
_timescaledb_internal | _dist_hyper_1_2_chunk | 8192 | 32768 | 0 | 40960 | data_node_2
_timescaledb_internal | _dist_hyper_1_3_chunk | 8192 | 32768 | 0 | 40960 | data_node_3
SELECT * FROM chunks_detailed_size('<hypertable_name>');
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
hypertable | REGCLASS | - | ✔ | Name of the hypertable |
| Column | Type | Description |
|---|---|---|
| chunk_schema | TEXT | Schema name of the |
| chunk_name | TEXT | Name of the |
| table_bytes | BIGINT | Disk space used by the table |
| index_bytes | BIGINT | Disk space used by indexes |
| toast_bytes | BIGINT | Disk space of toast tables |
| total_bytes | BIGINT | Total disk space used by the , including all indexes and TOAST data |
| node_name | TEXT | Node for which size is reported, applicable only to distributed s |
NULL.