You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _partials/_timescaledb-gucs.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,4 +81,4 @@
81
81
|`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`|
82
82
|`telemetry_level`|`ENUM`|`TELEMETRY_DEFAULT`| Level used to determine which telemetry to send |
-**Create a data retention policy to discard chunks created before 6 months**:
47
42
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`.|
|`relation`|REGCLASS|-|✔| Name of the hypertable or continuous aggregate to create the policy for |
53
+
|`drop_after`|INTERVAL orINTEGER|-|✔| 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, andDATE: 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. |
63
59
64
-
## Optional arguments
60
+
You specify `drop_after` differently depending on the hypertable time column type:
65
61
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, andDATEtime 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].
Copy file name to clipboardExpand all lines: use-timescale/backup-restore.md
+21-8Lines changed: 21 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,15 +60,24 @@ You can have one cross-region backup per $SERVICE_SHORT. To change the region of
60
60
61
61
<Availability products={['cloud']} />
62
62
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.
64
68
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.
70
72
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.
72
81
73
82
You initiate a point-in-time recovery from a same-region or cross-region backup in $CONSOLE_LONG:
74
83
@@ -92,7 +101,11 @@ You initiate a point-in-time recovery from a same-region or cross-region backup
92
101
1. Confirm by clicking `Create recovery fork`.
93
102
94
103
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
0 commit comments