Skip to content

Commit

Permalink
[Caggs] Add description of 'finalized' column (github#1388)
Browse files Browse the repository at this point in the history
Add description of 'finalized' column in
'timescaledb_information.continuous_aggregates', new since 2.7.

Co-authored-by: Lana Brindley <github@lanabrindley.com>
  • Loading branch information
charislam and Loquacity authored Aug 4, 2022
1 parent ce87ccb commit bb83219
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/continuous_aggregates.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords: [continuous aggregates]
tags: [information, schemas, metadata, definition]
---

## timescaledb_information.continuous_aggregates
## timescaledb_information.continuous_aggregates

Get metadata and settings information for continuous aggregates.

Expand All @@ -25,8 +25,10 @@ Get metadata and settings information for continuous aggregates.
|`materialization_hypertable_schema` | TEXT | Schema of the underlying materialization table|
|`materialization_hypertable_name` | TEXT | Name of the underlying materialization table|
|`view_definition` | TEXT | `SELECT` query for continuous aggregate view|
|`finalized`| BOOLEAN | Whether the continuous aggregate stores data in finalized or partial form. Since TimescaleDB 2.7, the default is finalized. |

### Sample usage

```sql
SELECT * FROM timescaledb_information.continuous_aggregates;

Expand All @@ -44,5 +46,6 @@ view_definition | SELECT foo.a,
| COUNT(foo.b) AS countb +
| FROM foo +
| GROUP BY (time_bucket('1 day', foo.a)), foo.a;
finalized | t

```

0 comments on commit bb83219

Please sign in to comment.