Skip to content

Commit d8e4895

Browse files
zhyassclaude
andcommitted
docs: fix RETAIN syntax ambiguity and add anchor to snapshot tag links
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3d0fd0f commit d8e4895

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/cn/sql-reference/10-sql-commands/00-ddl/21-table-versioning/01-create-snapshot-tag.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ALTER TABLE [<database_name>.]<table_name> CREATE TAG <tag_name>
2929
OFFSET => <time_interval> |
3030
TAG => <tag_name>
3131
) ]
32-
[ RETAIN <n> DAYS | SECONDS ]
32+
[ RETAIN <n> { DAYS | SECONDS } ]
3333
```
3434

3535
## 参数

docs/cn/sql-reference/10-sql-commands/00-ddl/21-table-versioning/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ SET enable_experimental_table_ref = 1;
3131
快照标签为快照附加一个可读的名称。只要标签存在,被引用的快照就会受到保护,不会被 vacuum 和垃圾回收清理 — 即使保留期已过。
3232

3333
- 不带 `RETAIN` 的标签会一直存在,直到显式删除。
34-
-`RETAIN <n> DAYS | SECONDS` 的标签会在指定时间后,在下次 vacuum 操作时自动移除。
34+
-`RETAIN <n> { DAYS | SECONDS }` 的标签会在指定时间后,在下次 vacuum 操作时自动移除。
3535

3636
**SQL 命令:**
3737

docs/en/sql-reference/10-sql-commands/00-ddl/21-table-versioning/01-create-snapshot-tag.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ALTER TABLE [<database_name>.]<table_name> CREATE TAG <tag_name>
2929
OFFSET => <time_interval> |
3030
TAG => <tag_name>
3131
) ]
32-
[ RETAIN <n> DAYS | SECONDS ]
32+
[ RETAIN <n> { DAYS | SECONDS } ]
3333
```
3434

3535
## Parameters

docs/en/sql-reference/10-sql-commands/00-ddl/21-table-versioning/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Snapshot tags pin a specific point-in-time state of a table by name. Once create
3131
A snapshot tag attaches a human-readable name to a snapshot. As long as the tag exists, the referenced snapshot is protected from vacuum and garbage collection — even if the retention period has passed.
3232

3333
- A tag without `RETAIN` lives until explicitly dropped.
34-
- A tag with `RETAIN <n> DAYS | SECONDS` is automatically removed after the specified duration during the next vacuum operation.
34+
- A tag with `RETAIN <n> { DAYS | SECONDS }` is automatically removed after the specified duration during the next vacuum operation.
3535

3636
**SQL Commands:**
3737

0 commit comments

Comments
 (0)