If you no longer want to use tiered storage for a particular hypertable, you can drop the associated metadata by calling the disable_tiering function.

To disable tiering on a hypertable:

  1. Call remove_tiering_policy and drop any tiering policy associated with this hypertable.

  2. Make sure that there is no tiered data associated with this hypertable:

    1. List the tiered chunks associated with this hypertable:

      select * from timescaledb_osm.tiered_chunks
    2. If you have any tiered chunks, either untier this data, or drop these chunks from tiered storage.

      You can use the untier_chunk procedure to untier chunks that have already been tiered to local storage.

  3. Use disable_tiering to drop all tiering related metadata for the hypertable:

    select disable_tiering('my_hypertable_name');
  4. Verify that tiering has been disabled by listing the hypertables that have tiering enabled.

    select * from timescaledb_osm.tiered_hypertables;

And that is it, you have disabled tiering on a hypertable.

Keywords

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