Add a tiering policy
To add a tiering policy, call add_tiering_policy:
sql
SELECT add_tiering_policy(hypertable REGCLASS, move_after INTERVAL, if_not_exists BOOL = false);For example, to tier chunks that are more than three days old in the example [hypertable][hypertable]:
sql
SELECT add_tiering_policy('example', INTERVAL '3 days');By default, a tiering policy runs hourly on your database. To change this interval, call alter_job.