I was trying to set the chunk time interval materialization view created through continuous aggregates, using command from timescale doc
To create the continuous aggregates:
CREATE MATERIALIZED VIEW device_summary
WITH (timescaledb.continuous)
AS
SELECT
time_bucket('1 hour', observation_time ) AS bucket,
min(observation_time::timestamp) AS min_time,
device_id,
avg(metric) AS metric_avg,
max(metric) - min(metric) AS metric_spread
FROM
device_readings
GROUP BY bucket, device_id;
and set the chunk time interval (mentioned in best practice section)
SELECT set_chunk_time_interval('device_summary', INTERVAL '10 days');
It return me error of device_summary is not hypertable, it ask me to set chunk time interval on the hypertable, where I think it is caused by the device_summary is a view.
I can see my chunk interval of materialization view through SELECT * FROM timescaledb_information.chunks.My question is, is it possible to set the chunk time interval for materialization view?