Skip to content

Commit 5b16ee3

Browse files
Merge branch 'latest' into add-rocky-linux
2 parents d2e2cc3 + 4fbc4bf commit 5b16ee3

File tree

3 files changed

+34
-20
lines changed

3 files changed

+34
-20
lines changed

_partials/_livesync-terminal.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ instance to a $SERVICE_LONG:
178178
As you run $LIVESYNC continuously, best practice is to run it as a Docker daemon.
179179

180180
```shell
181-
docker run -d --rm --name livesync timescale/live-sync:v0.1.22 run \
181+
docker run -d --rm --name livesync timescale/live-sync:v0.1.25 run \
182182
--publication <publication_name> --subscription <subscription_name> \
183-
--source $SOURCE --target $TARGET
183+
--source $SOURCE --target $TARGET --table-map <table_map_as_json>
184184
```
185185

186186
`--publication`: The name of the publication as you created in the previous step. To use multiple publication repeat the `--publication` flag.
@@ -191,6 +191,19 @@ instance to a $SERVICE_LONG:
191191

192192
`--target`: The connection string to the target $SERVICE_LONG.
193193

194+
`--table-map`: (Optional) A JSON string that maps source tables to target tables. If not provided, the source and target table names are assumed to be the same.
195+
For example, to map the source table `metrics` to the target table `metrics_data`:
196+
197+
```
198+
--table-map '{"source": {"schema": "public", "table": "metrics"}, "target": {"schema": "public", "table": "metrics_data"}}'
199+
```
200+
To map only the schema, use:
201+
202+
```
203+
--table-map '{"source": {"schema": "public"}, "target": {"schema": "analytics"}}'
204+
```
205+
This flag can be repeated for multiple table mappings.
206+
194207
1. **Capture Logs**
195208

196209
Once $LIVESYNC is running as a docker daemon, you can also capture the logs:
@@ -315,7 +328,7 @@ EOF
315328
Use the `--drop` flag to remove the replication slots created by $LIVESYNC on the source database.
316329

317330
```shell
318-
docker run -it --rm --name livesync timescale/live-sync:v0.1.22 run \
331+
docker run -it --rm --name livesync timescale/live-sync:v0.1.25 run \
319332
--publication <publication_name> --subscription <subscription_name> \
320333
--source $SOURCE --target $TARGET \
321334
--drop

api/hypertable/split_chunk.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,31 @@ products: [cloud, mst, self_hosted]
1111

1212
# split_chunk() <Tag type="community">Community</Tag>
1313

14-
Split a large chunk at a specific point in time.
14+
Split a large chunk at a specific point in time. If you do not specify the timestamp to split at, `chunk`
15+
is split equally.
1516

1617
## Samples
1718

18-
Split a chunk at a specific time:
19+
* Split a chunk at a specific time:
1920

20-
```sql
21-
CALL split_chunk('chunk_1', split_at => '2025-03-01 00:00');
22-
```
21+
```sql
22+
CALL split_chunk('chunk_1', split_at => '2025-03-01 00:00');
23+
```
2324

25+
* Split a chunk in two:
26+
27+
For example, If the chunk duration is, 24 hours, the following command splits `chunk_1` into
28+
two chunks of 12 hours each.
29+
```sql
30+
CALL split_chunk('chunk_1');
31+
```
32+
2433
## Required arguments
2534

26-
|Name|Type| Description |
27-
|---|---|----------------------------------|
28-
| `chunk` | REGCLASS | Name of the chunk to split. |
29-
| `split_at` | `TIMESTAMPTZ`| Timestamp to split the chunk at. |
35+
|Name|Type| Required | Description |
36+
|---|---|---|----------------------------------|
37+
| `chunk` | REGCLASS | ✔ | Name of the chunk to split. |
38+
| `split_at` | `TIMESTAMPTZ`| ✖ |Timestamp to split the chunk at. |
3039

3140

3241
## Returns

use-timescale/configuration/customize-configuration.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,6 @@ To modify a configured value, hover over the value and click the revealed pencil
4242
icon. This reveals an editable field to apply your change. Clicking anywhere
4343
outside of that field saves the value to be applied.
4444

45-
<Highlight type="note">
46-
47-
The values for some of the parameters vary depending on your [pricing plan][plan-features].
48-
For example, the value for `max_connections` is 25 in the Performance plan, but
49-
ranges from 25 to 500 in higher compute plans.
50-
51-
</Highlight>
52-
5345
<img class="main-content__illustration"
5446
width={1375} height={944}
5547
src="https://assets.timescale.com/docs/images/tsc-settings-change.webp"

0 commit comments

Comments
 (0)