-
Notifications
You must be signed in to change notification settings - Fork 127
chore: add query to list tables with tiering enabled. #4328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: latest
Are you sure you want to change the base?
Changes from 3 commits
5622442
12fed16
4cafc82
b09ac3a
e273650
60e060a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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| | ||
| ``` | ||
|
|
@@ -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. | ||
|
|
||
| </Procedure> | ||
| 1. List the hypertables that have tiering enabled: | ||
|
|
||
| ```sql | ||
| select * from timescaledb_osm.tiered_hypertables; | ||
| ``` | ||
|
|
||
| </Procedure> | ||
|
|
||
| ## Enable querying tiered data in all future sessions | ||
|
|
||
|
|
@@ -75,14 +80,26 @@ 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; | ||
| ``` | ||
|
|
||
| </Procedure> | ||
|
|
||
|
|
||
| ## Query data in the object storage tier | ||
|
|
||
| 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: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure where this text was copied from. The text for lines 111-113 and the result of this query don't make sense together (lines 102-107). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Awesome, thank you |
||
| ```sql | ||
| chunk_name | range_start | range_end | ||
| ------------------+------------------------+------------------------ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.