v.25.6New Feature

Support disk setting

Support disk setting for Atomic and Ordinary database engines, specifying the disk to store table metadata files. #80546 (Tuan Pham Anh). This allows attaching databases from external sources.
Support for the disk setting in Atomic and Ordinary database engines, enabling specification of the disk where table metadata files are stored.

Why it matters

This feature allows users to specify which disk to store database metadata files, facilitating better storage management and enabling the attachment of databases from external sources.

How to use it

Users can configure the disk setting in the database engine definition when creating or altering a database, for example:

CREATE DATABASE db_name ENGINE = Atomic SETTINGS disk = 'disk_name'


This setting directs ClickHouse to store the table metadata files on the specified disk.