Materialized hypertables

Continuous aggregates take raw data from the original hypertable, aggregate it, and store the intermediate state in a materialization hypertable. You can modify this materialized hypertable in the same way as any other hypertable.

Discover the name of a materialized hypertable

To change a materialized hypertable, you need to use its fully qualified name. To find the correct name, use the timescaledb_information.continuous_aggregates view). You can then use the name to modify it in the same way as any other hypertable.

Discovering the name of a materialized hypertable

  1. At the psqlprompt, query timescaledb_information.continuous_aggregates:

``` 1. SELECT view_name, format('%I.%I', materialization_hypertable_schema,

  1. materialization_hypertable_name) AS materialization_hypertable

  2. FROM timescaledb_information.continuous_aggregates; ```

  3. Locate the name of the hypertable you want to adjust in the results of the query. The results look like this:

``` 1. view_name | materialization_hypertable

  1. ---------------------------+---------------------------------------------------

  2. conditions_summary_hourly | _timescaledb_internal._materialized_hypertable_30

  3. conditions_summary_daily | _timescaledb_internal._materialized_hypertable_31

  4. (2 rows) ```