ClickHouse/docs/en/operations/system-tables/detached_tables.md
Konstantin Morozov 237de4e775 add feature
2024-06-21 16:38:56 +00:00

1.1 KiB

slug
/en/operations/system-tables/detached_tables

detached_tables

Contains information of each detached table.

Columns:

  • database (String) — The name of the database the table is in.

  • name (String) — Table name.

  • uuid (UUID) — Table uuid (Atomic database).

  • is_permanently (UInt8) - Flag indicates that the table was detached PERMANENTLY.

  • metadata_path (String) - Path to the table metadata in the file system.

Example

SELECT * FROM system.detached_tables FORMAT Vertical;
Row 1:
──────
database:                   base
name:                       t1
uuid:                       81b1c20a-b7c6-4116-a2ce-7583fb6b6736
data_paths:                 ['/var/lib/clickhouse/store/81b/81b1c20a-b7c6-4116-a2ce-7583fb6b6736/']
metadata_path:              /var/lib/clickhouse/store/461/461cf698-fd0b-406d-8c01-5d8fd5748a91/t1.sql
is_permanently:             1