ClickHouse/docs/en/operations/system-tables/moves.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
2.3 KiB
Markdown
Raw Normal View History

2023-01-11 13:04:05 +00:00
---
slug: /en/operations/system-tables/moves
---
# moves
The table contains information about in-progress [data part moves](/docs/en/sql-reference/statements/alter/partition#move-partitionpart) of [MergeTree](/docs/en/engines/table-engines/mergetree-family/mergetree.md) tables. Each data part movement is represented by a single row.
Columns:
- `database` ([String](/docs/en/sql-reference/data-types/string.md)) — Name of the database.
2023-01-11 13:04:05 +00:00
- `table` ([String](/docs/en/sql-reference/data-types/string.md)) — Name of the table containing moving data part.
2023-01-11 13:04:05 +00:00
- `elapsed` ([Float64](../../sql-reference/data-types/float.md)) — Time elapsed (in seconds) since data part movement started.
2023-01-11 13:04:05 +00:00
- `target_disk_name` ([String](disks.md)) — Name of [disk](/docs/en/operations/system-tables/disks/) to which the data part is moving.
2023-01-11 13:04:05 +00:00
- `target_disk_path` ([String](disks.md)) — Path to the mount point of the [disk](/docs/en/operations/system-tables/disks/) in the file system.
2023-01-11 13:04:05 +00:00
- `part_name` ([String](/docs/en/sql-reference/data-types/string.md)) — Name of the data part being moved.
2023-01-11 13:04:05 +00:00
- `part_size` ([UInt64](../../sql-reference/data-types/int-uint.md)) — Data part size.
2023-01-11 13:04:05 +00:00
- `thread_id` ([UInt64](../../sql-reference/data-types/int-uint.md)) — Identifier of a thread performing the movement.
2023-01-11 13:04:05 +00:00
**Example**
```sql
SELECT * FROM system.moves
```
2023-01-11 13:23:44 +00:00
```response
2023-01-11 13:04:05 +00:00
┌─database─┬─table─┬─────elapsed─┬─target_disk_name─┬─target_disk_path─┬─part_name─┬─part_size─┬─thread_id─┐
│ default │ test2 │ 1.668056039 │ s3 │ ./disks/s3/ │ all_3_3_0 │ 136 │ 296146 │
└──────────┴───────┴─────────────┴──────────────────┴──────────────────┴───────────┴───────────┴───────────┘
```
**See Also**
- [MergeTree](/docs/en/engines/table-engines/mergetree-family/mergetree.md) table engine
- [Using Multiple Block Devices for Data Storage](/docs/en/engines/table-engines/mergetree-family/mergetree#table_engine-mergetree-multiple-volumes)
- [ALTER TABLE ... MOVE PART](/docs/en/sql-reference/statements/alter/partition#move-partitionpart) command