Skip to content

Commit bb83219

Browse files
charislamLoquacity
andauthored
[Caggs] Add description of 'finalized' column (github#1388)
Add description of 'finalized' column in 'timescaledb_information.continuous_aggregates', new since 2.7. Co-authored-by: Lana Brindley <[email protected]>
1 parent ce87ccb commit bb83219

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

api/continuous_aggregates.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ keywords: [continuous aggregates]
77
tags: [information, schemas, metadata, definition]
88
---
99

10-
## timescaledb_information.continuous_aggregates
10+
## timescaledb_information.continuous_aggregates
1111

1212
Get metadata and settings information for continuous aggregates.
1313

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

2930
### Sample usage
31+
3032
```sql
3133
SELECT * FROM timescaledb_information.continuous_aggregates;
3234

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

4851
```

0 commit comments

Comments
 (0)