Skip to content

Commit 1b3091b

Browse files
Merge branch 'latest' into 503-cli-mcp-agent-milestone-branch
2 parents 8813e69 + 6148a79 commit 1b3091b

File tree

9 files changed

+409
-57
lines changed

9 files changed

+409
-57
lines changed

_partials/_early_access_11_25.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<Tag variant="hollow">Early access: October 2025</Tag>

_partials/_integration-prereqs-cloud-only.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
To follow the steps on this page:
33

4-
* Create a target [$SERVICE_LONG][create-service] with time-series and analytics enabled.
4+
* Create a target [$SERVICE_LONG][create-service] with the Real-time analytics capability.
55

66
You need your [connection details][connection-info].
77

_partials/_integration-prereqs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
To follow the steps on this page:
22

3-
* Create a target [$SERVICE_LONG][create-service] with time-series and analytics enabled.
3+
* Create a target [$SERVICE_LONG][create-service] with the Real-time analytics capability.
44

55
You need [your connection details][connection-info]. This procedure also
66
works for [$SELF_LONG][enable-timescaledb].

_partials/_timescaledb-gucs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@
8181
| `skip_scan_run_cost_multiplier` | `REAL` | `1.0` | Default is 1.0 i.e. regularly estimated SkipScan run cost, 0.0 will make SkipScan to have run cost = 0<br />min: `0.0`, max: `1.0` |
8282
| `telemetry_level` | `ENUM` | `TELEMETRY_DEFAULT` | Level used to determine which telemetry to send |
8383

84-
Version: [2.22.0](https://github.com/timescale/timescaledb/releases/tag/2.22.0)
84+
Version: [2.22.1](https://github.com/timescale/timescaledb/releases/tag/2.22.1)

api/data-retention/add_retention_policy.md

Lines changed: 33 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -18,55 +18,49 @@ information, see the [drop_chunks][drop_chunks] section. This implements a data
1818
retention policy and removes data on a schedule. Only one retention policy may
1919
exist per hypertable.
2020

21-
## Samples
22-
23-
Create a data retention policy to discard chunks greater than 6 months old:
24-
25-
```sql
26-
SELECT add_retention_policy('conditions', drop_after => INTERVAL '6 months');
27-
```
28-
29-
Create a data retention policy with an integer-based time column:
21+
When you create a retention policy on a hypertable with an integer based time column, you must set the
22+
[integer_now_func][set_integer_now_func] to match your data. If you are seeing `invalid value` issues when you
23+
call `add_retention_policy`, set `VERBOSITY verbose` to see the full context.
3024

31-
```sql
32-
SELECT add_retention_policy('conditions', drop_after => BIGINT '600000');
33-
```
25+
## Samples
3426

35-
Create a data retention policy to discard chunks created before 6 months:
27+
- **Create a data retention policy to discard chunks greater than 6 months old**:
3628

37-
```sql
38-
SELECT add_retention_policy('conditions', drop_created_before => INTERVAL '6 months');
39-
```
29+
```sql
30+
SELECT add_retention_policy('conditions', drop_after => INTERVAL '6 months');
31+
```
32+
When you call `drop_after`, the time data range present in the partitioning time column is used to select the target
33+
chunks.
34+
35+
- **Create a data retention policy with an integer-based time column**:
4036

41-
Note above that when `drop_after` is used then the time data range
42-
present in the partitioning time column is used to select the target
43-
chunks. Whereas, when `drop_created_before` is used then the chunks
44-
which were created 3 months ago are selected.
37+
```sql
38+
SELECT add_retention_policy('conditions', drop_after => BIGINT '600000');
39+
```
4540

46-
## Required arguments
41+
- **Create a data retention policy to discard chunks created before 6 months**:
4742

48-
|Name|Type|Description|
49-
|-|-|-|
50-
|`relation`|REGCLASS|Name of the hypertable or continuous aggregate to create the policy for|
51-
|`drop_after`|INTERVAL or INTEGER|Chunks fully older than this interval when the policy is run are dropped|
52-
|`schedule_interval`|INTERVAL|The interval between the finish time of the last execution and the next start. Defaults to NULL.|
53-
|`initial_start`|TIMESTAMPTZ|Time the policy is first run. Defaults to NULL. If omitted, then the schedule interval is the interval between the finish time of the last execution and the next start. If provided, it serves as the origin with respect to which the next_start is calculated.|
54-
|`timezone`|TEXT|A valid time zone. If `initial_start` is also specified, subsequent executions of the retention policy are aligned on its initial start. However, daylight savings time (DST) changes may shift this alignment. Set to a valid time zone if this is an issue you want to mitigate. If omitted, UTC bucketing is performed. Defaults to `NULL`.|
43+
```sql
44+
SELECT add_retention_policy('conditions', drop_created_before => INTERVAL '6 months');
45+
```
46+
When you call `drop_created_before`, chunks created 3 months ago are selected.
5547

56-
The `drop_after` parameter should be specified differently depending on the
57-
type of the time column of the hypertable:
48+
## Arguments
5849

59-
* For hypertables with TIMESTAMP, TIMESTAMPTZ, and DATE time columns: the time
60-
interval should be an INTERVAL type.
61-
* For hypertables with integer-based timestamps: the time interval should be an
62-
integer type (this requires the [integer_now_func][set_integer_now_func] to be set).
50+
| Name | Type | Default | Required | Description |
51+
|-|-|-|-|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
52+
|`relation`|REGCLASS|-|✔| Name of the hypertable or continuous aggregate to create the policy for |
53+
|`drop_after`|INTERVAL or INTEGER|-|✔| Chunks fully older than this interval when the policy is run are dropped. <BR/> You specify `drop_after` differently depending on the hypertable time column type: <ul><li>TIMESTAMP, TIMESTAMPTZ, and DATE: use INTERVAL type</li><li>Integer-based timestamps: use INTEGER type. You must set <a href="https://docs.tigerdata.com/api/latest/hypertable/set_integer_now_func/">integer_now_func</a> to match your data</li></ul> |
54+
|`schedule_interval`|INTERVAL|`NULL`|✖| The interval between the finish time of the last execution and the next start. |
55+
|`initial_start`|TIMESTAMPTZ|`NULL`|✖| Time the policy is first run. If omitted, then the schedule interval is the interval between the finish time of the last execution and the next start. If provided, it serves as the origin with respect to which the next_start is calculated. |
56+
|`timezone`|TEXT|`NULL`|✖| A valid time zone. If `initial_start` is also specified, subsequent executions of the retention policy are aligned on its initial start. However, daylight savings time (DST) changes may shift this alignment. Set to a valid time zone if this is an issue you want to mitigate. If omitted, UTC bucketing is performed. |
57+
|`if_not_exists`|BOOLEAN|`false`|✖| Set to `true` to avoid an error if the `drop_chunks_policy` already exists. A notice is issued instead. |
58+
|`drop_created_before`|INTERVAL|`NULL`|✖| Chunks with creation time older than this cut-off point are dropped. The cut-off point is computed as `now() - drop_created_before`. Not supported for continuous aggregates yet. |
6359

64-
## Optional arguments
60+
You specify `drop_after` differently depending on the hypertable time column type:
6561

66-
|Name|Type|Description|
67-
|-|-|-|
68-
|`if_not_exists`|BOOLEAN|Set to `true` to avoid an error if the `drop_chunks_policy` already exists. A notice is issued instead. Defaults to `false`.|
69-
|`drop_created_before`|INTERVAL|Chunks with creation time older than this cut-off point are dropped. The cut-off point is computed as `now() - drop_created_before`. Defaults to `NULL`. Not supported for continuous aggregates yet.|
62+
* TIMESTAMP, TIMESTAMPTZ, and DATE time columns: the time interval should be an INTERVAL type.
63+
* Integer-based timestamps: the time interval should be an integer type. You must set the [integer_now_func][set_integer_now_func].
7064

7165
## Returns
7266

use-timescale/backup-restore.md

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,24 @@ You can have one cross-region backup per $SERVICE_SHORT. To change the region of
6060

6161
<Availability products={['cloud']} />
6262

63-
To recover your $SERVICE_SHORT from a destructive or unwanted action, create a point-in-time recovery fork. You can recover a $SERVICE_SHORT to any point within the period [defined by your pricing plan][pricing-and-account-management]. The original $SERVICE_SHORT stays untouched to avoid losing data created since the time of recovery.
63+
To recover your $SERVICE_SHORT from a destructive or unwanted action, create a point-in-time recovery fork. You can
64+
recover a $SERVICE_SHORT to any point within the period [defined by your pricing plan][pricing-and-account-management].
65+
The provision time for the recovery fork is typically less than twenty minutes, but can take longer depending on the
66+
amount of WAL to be replayed. The original $SERVICE_SHORT stays untouched to avoid losing data created since the time
67+
of recovery.
6468

65-
Since the point-in-time recovery is done in a fork, to migrate your
66-
application to the point of recovery, change the connection
67-
strings in your application to use the fork. The provision time for the
68-
recovery fork is typically less than twenty minutes, but can take longer
69-
depending on the amount of WAL to be replayed.
69+
All tiered data remains recoverable during the PITR period. When restoring to any point-in-time recovery fork, your
70+
$SERVICE_SHORT contains all data that existed at that moment - whether it was stored in high-performance or low-cost
71+
storage.
7072

71-
To avoid paying for compute for the recovery fork and the original $SERVICE_SHORT, pause the original to only pay storage costs.
73+
When you restore a recovery fork:
74+
- Data restored from a PITR point is placed into high-performance storage
75+
- The tiered data, as of that point in time, remains in tiered storage
76+
77+
78+
79+
To avoid paying for compute for the recovery fork and the original $SERVICE_SHORT, pause the original to only pay
80+
storage costs.
7281

7382
You initiate a point-in-time recovery from a same-region or cross-region backup in $CONSOLE_LONG:
7483

@@ -92,7 +101,11 @@ You initiate a point-in-time recovery from a same-region or cross-region backup
92101
1. Confirm by clicking `Create recovery fork`.
93102

94103
A fork of the $SERVICE_SHORT is created. The recovered $SERVICE_SHORT shows in `Services` with a label specifying which $SERVICE_SHORT it has been forked from.
95-
1. Update the connection strings in your app to use the fork.
104+
1. Update the connection strings in your app
105+
106+
Since the point-in-time recovery is done in a fork, to migrate your
107+
application to the point of recovery, change the connection
108+
strings in your application to use the fork.
96109

97110
</Procedure>
98111

use-timescale/extensions/index.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ The following $PG extensions are installed with each $SERVICE_LONG:
1616

1717
## $COMPANY extensions
1818

19-
| Extension | Description | Enabled by default |
20-
|--------------------------------------------|------------------------------------|-----------------------------------------------------|
21-
| [pgai][pgai] | Helper functions for AI workflows | For [AI-focused][services] $SERVICE_SHORTs |
22-
| [pgvector][pgvector] | Vector similarity search for $PG | For [AI-focused][services] $SERVICE_SHORTs |
23-
| [pgvectorscale][pgvectorscale] | Advanced indexing for vector data | For [AI-focused][services] $SERVICE_SHORTs |
24-
| [timescaledb_toolkit][timescaledb-toolkit] | TimescaleDB Toolkit | For [Real-time analytics][services] $SERVICE_SHORTs |
25-
| [timescaledb][timescaledb] | TimescaleDB | For all $SERVICE_SHORTs |
19+
| Extension | Description | Enabled by default |
20+
|---------------------------------------------|--------------------------------------------|-----------------------------------------------------------------------|
21+
| [pgai][pgai] | Helper functions for AI workflows | For [AI-focused][services] $SERVICE_SHORTs |
22+
| [pg_textsearch][pg_textsearch] | [BM25][bm25-wiki]-based full-text search | Currently early access. For development and staging environments only |
23+
| [pgvector][pgvector] | Vector similarity search for $PG | For [AI-focused][services] $SERVICE_SHORTs |
24+
| [pgvectorscale][pgvectorscale] | Advanced indexing for vector data | For [AI-focused][services] $SERVICE_SHORTs |
25+
| [timescaledb_toolkit][timescaledb-toolkit] | TimescaleDB Toolkit | For [Real-time analytics][services] $SERVICE_SHORTs |
26+
| [timescaledb][timescaledb] | TimescaleDB | For all $SERVICE_SHORTs |
2627

2728
## $PG built-in extensions
2829

@@ -138,6 +139,7 @@ The following $PG extensions are installed with each $SERVICE_LONG:
138139
[refint]: https://www.postgresql.org/docs/current/contrib-spi.html
139140
[seg]: https://www.postgresql.org/docs/current/seg.html
140141
[pgcrypto]: /use-timescale/:currentVersion:/extensions/pgcrypto/
142+
[pg_textsearch]: /use-timescale/:currentVersion:/extensions/pg-textsearch/
141143
[sslinfo]: https://www.postgresql.org/docs/current/sslinfo.html
142144
[tablefunc]: https://www.postgresql.org/docs/current/tablefunc.html
143145
[tcn]: https://www.postgresql.org/docs/current/tcn.html
@@ -153,3 +155,4 @@ The following $PG extensions are installed with each $SERVICE_LONG:
153155
[timescale-extensions]: #timescale-extensions
154156
[third-party]: #third-party-extensions
155157
[services]: /getting-started/:currentVersion:/
158+
[bm25-wiki]: https://en.wikipedia.org/wiki/Okapi_BM25

0 commit comments

Comments
 (0)