From 5622442116350ce53d78d665fdd8000682642c9a Mon Sep 17 00:00:00 2001 From: billy-the-fish Date: Mon, 4 Aug 2025 10:56:31 +0200 Subject: [PATCH 1/3] chore: add query to list tables with tiering enabled. --- use-timescale/data-tiering/querying-tiered-data.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/use-timescale/data-tiering/querying-tiered-data.md b/use-timescale/data-tiering/querying-tiered-data.md index 9b19ed5686..1e21e46b3d 100644 --- a/use-timescale/data-tiering/querying-tiered-data.md +++ b/use-timescale/data-tiering/querying-tiered-data.md @@ -58,8 +58,13 @@ All future queries within a session can be enabled to use the object storage tie All future queries in that session are configured to read from tiered data and locally stored data. - +1. List the hypertables that have tiering enabled: + ```sql + select * from timescaledb_osm.tiered_hypertables; + ``` + + ## Enable querying tiered data in all future sessions @@ -75,8 +80,15 @@ You can also enable queries to read from tiered data always by following these s In all future created sessions, `timescaledb.enable_tiered_reads` initializes with `enabled`. +1. List the hypertables that have tiering enabled: + + ```sql + select * from timescaledb_osm.tiered_hypertables; + ``` + + ## Query data in the object storage tier This section illustrates how querying tiered storage works. From 4cafc824ab038c5fcdabbd8c62c4f8f319ed43bb Mon Sep 17 00:00:00 2001 From: billy-the-fish Date: Mon, 4 Aug 2025 17:14:39 +0200 Subject: [PATCH 2/3] chore: add query to list tables with tiering enabled. --- use-timescale/data-tiering/querying-tiered-data.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/use-timescale/data-tiering/querying-tiered-data.md b/use-timescale/data-tiering/querying-tiered-data.md index 1e21e46b3d..d134aba711 100644 --- a/use-timescale/data-tiering/querying-tiered-data.md +++ b/use-timescale/data-tiering/querying-tiered-data.md @@ -37,7 +37,7 @@ as the data is not stored locally on the high-performance storage tier. See [Per This queries data from all chunks including tiered chunks and non tiered chunks: ```sql - ||count| + |count| |---| |1000| ``` @@ -93,8 +93,13 @@ You can also enable queries to read from tiered data always by following these s This section illustrates how querying tiered storage works. -Consider a simple database with a standard `devices` table and a `metrics` hypertable. After enabling tiered storage, you can see which chunks are tiered to the object storage tier: +Consider a simple database with a standard `devices` table and a `metrics` hypertable. After enabling +tiered storage, query for the hypertable chunks in the object storage tier: +```sql +select * from timescaledb_osm.tiered_hypertables; +``` +You see something like the following: ```sql chunk_name | range_start | range_end ------------------+------------------------+------------------------ From e273650e99c6ffefab9cfc7d39ce2b79c01fb5aa Mon Sep 17 00:00:00 2001 From: Iain Cox Date: Mon, 11 Aug 2025 13:29:19 +0200 Subject: [PATCH 3/3] Update use-timescale/data-tiering/querying-tiered-data.md Co-authored-by: gayyappan <45599764+gayyappan@users.noreply.github.com> Signed-off-by: Iain Cox --- use-timescale/data-tiering/querying-tiered-data.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/use-timescale/data-tiering/querying-tiered-data.md b/use-timescale/data-tiering/querying-tiered-data.md index d134aba711..b6f8842e29 100644 --- a/use-timescale/data-tiering/querying-tiered-data.md +++ b/use-timescale/data-tiering/querying-tiered-data.md @@ -97,7 +97,7 @@ Consider a simple database with a standard `devices` table and a `metrics` hyper tiered storage, query for the hypertable chunks in the object storage tier: ```sql -select * from timescaledb_osm.tiered_hypertables; +select * from timescaledb_osm.tiered_chunks where hypertable_name = 'metrics' ``` You see something like the following: ```sql