Retrieve the compression settings for each chunk in the columnstore.
Since TimescaleDB v2.18.0To retrieve information about settings:
Show settings for all chunks in the columnstore:
SELECT * FROM timescaledb_information.chunk_columnstore_settingsReturns:
hypertable | chunk | segmentby | orderby------------+-------+-----------+---------measurements | _timescaledb_internal._hyper_1_1_chunk| | "time" DESC
Find all chunk columnstore settings for a specific hypertable:
SELECT *FROM timescaledb_information.chunk_columnstore_settingsWHERE hypertable::TEXT LIKE 'metrics';Returns:
hypertable | chunk | segmentby | orderby------------+-------+-----------+---------metrics | _timescaledb_internal._hyper_2_3_chunk | metric_id | "time"
Name | Type | Default | Required | Description |
---|---|---|---|---|
hypertable | REGCLASS | - | ✖ | The name of a hypertable in the columnstore |
chunk | REGCLASS | - | ✖ | The name of a chunk in hypertable |
segmentby | TEXT | - | ✖ | A list of columns used to segment hypertable |
orderby | TEXT | - | ✖ | A list of columns used to order data in hypertable . Along with ordering and NULL ordering information. IAIN, I don't understand the second sentence. |
Keywords
Found an issue on this page?Report an issue or Edit this page in GitHub.