Skip to content

Commit

Permalink
Use a fully qualified hypertable name in an example (github#732)
Browse files Browse the repository at this point in the history
* Use a fully qualified hypertable name in an example

It doesn't work otherwise.

Fixes #4002

* Update timescaledb/how-to-guides/continuous-aggregates/materialized-hypertables.md

Co-authored-by: Lana Brindley <github@lanabrindley.com>

Co-authored-by: Lana Brindley <github@lanabrindley.com>
  • Loading branch information
akuzm and Loquacity authored Jan 24, 2022
1 parent 027911b commit 770e7c6
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ and store the intermediate state in a materialization hypertable. You can modify
this materialized hypertable in the same way as any other hypertable.

## Discover the name of a materialized hypertable
To change a materialized hypertable, you need to discover the name of it. To do
this, use the
To change a materialized hypertable, you need to use its fully qualified
name. To find the correct name, use the
[timescaledb_information.continuous_aggregates view][api-continuous-aggregates-info]).
You can then use the name to modify it in the same way as any other hypertable.

Expand All @@ -14,7 +14,8 @@ You can then use the name to modify it in the same way as any other hypertable.
### Discovering the name of a materialized hypertable
1. At the `psql`prompt, query `timescaledb_information.continuous_aggregates`:
```sql
SELECT view_name, <materialization_hypertable_name>
SELECT view_name, format('%I.%I', materialization_hypertable_schema,
materialization_hypertable_name) AS materialization_hypertable
FROM timescaledb_information.continuous_aggregates;
```
1. Locate the name of the hypertable you want to adjust in the results of the
Expand Down

0 comments on commit 770e7c6

Please sign in to comment.