Retrieve information about the settings for all hypertables in the columnstore.

Since TimescaleDB v2.18.0

To retrieve information about settings:

  • Show columnstore settings for all hypertables:

    SELECT * FROM timescaledb_information.hypertable_columnstore_settings;

    Returns:

    hypertable | measurements
    segmentby |
    orderby | "time" DESC
    compress_interval_length |
  • Retrieve columnstore settings for a specific hypertable:

    SELECT * FROM timescaledb_information.hypertable_columnstore_settings WHERE hypertable::TEXT LIKE 'metrics';

    Returns:

    hypertable | metrics
    segmentby | metric_id
    orderby | "time"
    compress_interval_length |
NameTypeDescription
hypertableREGCLASSA hypertable which has the columnstore enabled.
segmentbyTEXTThe list of columns used to segment data
orderbyTEXTList of columns used to order the data, along with ordering and NULL ordering information
compress_interval_lengthTEXTInterval used for rolling up chunks during compression IAIN, update when main doc is written.

Keywords

Found an issue on this page?Report an issue or Edit this page in GitHub.