> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-parallel-read-in-order-multi-part.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> 包含 MergeTree 表设置项信息的系统表。

# system.merge_tree_settings

## 描述

包含有关 `MergeTree` 表设置的信息。

## 列

* `name` ([String](/zh/reference/data-types/string)) — 设置名称。
* `value` ([String](/zh/reference/data-types/string)) — 设置值。
* `default` ([String](/zh/reference/data-types/string)) — 设置默认值。
* `changed` ([UInt8](/zh/reference/data-types/int-uint)) — 如果该设置是在配置中显式定义或被显式修改的，则为 1。
* `description` ([String](/zh/reference/data-types/string)) — 设置说明。
* `min` ([Nullable(String)](/zh/reference/data-types/nullable)) — 该设置的最小值 (如果已通过约束设置) 。如果该设置没有最小值，则为 NULL。
* `max` ([Nullable(String)](/zh/reference/data-types/nullable)) — 该设置的最大值 (如果已通过约束设置) 。如果该设置没有最大值，则为 NULL。
* `disallowed_values` ([Array(String)](/zh/reference/data-types/array)) — 不允许的值列表
* `readonly` ([UInt8](/zh/reference/data-types/int-uint)) — 显示当前用户是否可以更改该设置：0 — 当前用户可以更改该设置，1 — 当前用户无法更改该设置。
* `type` ([String](/zh/reference/data-types/string)) — 设置类型 (实现相关的字符串值) 。
* `is_obsolete` ([UInt8](/zh/reference/data-types/int-uint)) — 显示某项设置是否已废弃。
* `tier` ([Enum8('Production' = 0, 'Obsolete' = 4, 'Experimental' = 8, 'Beta' = 12, 'PrivatePreview' = 16)](/zh/reference/data-types/enum)) — 此功能的支持级别。ClickHouse 功能按层级划分，具体取决于其当前的
  开发状态以及使用时可有的预期：
  * PRODUCTION：该功能属于稳定版本，可安全使用，并且与其他 PRODUCTION 功能交互时不存在问题。
  * BETA：该功能稳定且安全。与其他功能一起使用时的结果尚不明确，且不保证正确性。欢迎测试并反馈问题。
  * EXPERIMENTAL：该功能仍在开发中。仅适用于开发者和 ClickHouse 爱好者。该功能可能可用，也可能不可用，并且随时可能被移除。
  * PRIVATE PREVIEW：该功能正稳步迈向正式发布。其适用范围仍然有限，不建议用于生产环境。
  * OBSOLETE：不再受支持。要么已被移除，要么将在未来的发行版中移除。

## 示例

```sql theme={null}
SELECT * FROM system.merge_tree_settings LIMIT 3 FORMAT Vertical;
```

```response theme={null}
SELECT *
FROM system.merge_tree_settings
LIMIT 3
FORMAT Vertical

Query id: 2580779c-776e-465f-a90c-4b7630d0bb70

Row 1:
──────
name:        min_compress_block_size
value:       0
default:     0
changed:     0
description: When granule is written, compress the data in buffer if the size of pending uncompressed data is larger or equal than the specified threshold. If this setting is not set, the corresponding global setting is used.
min:         ᴺᵁᴸᴸ
max:         ᴺᵁᴸᴸ
readonly:    0
type:        UInt64
is_obsolete: 0
tier:        Production

Row 2:
──────
name:        max_compress_block_size
value:       0
default:     0
changed:     0
description: Compress the pending uncompressed data in buffer if its size is larger or equal than the specified threshold. Block of data will be compressed even if the current granule is not finished. If this setting is not set, the corresponding global setting is used.
min:         ᴺᵁᴸᴸ
max:         ᴺᵁᴸᴸ
readonly:    0
type:        UInt64
is_obsolete: 0
tier:        Production

Row 3:
──────
name:        index_granularity
value:       8192
default:     8192
changed:     0
description: How many rows correspond to one primary key value.
min:         ᴺᵁᴸᴸ
max:         ᴺᵁᴸᴸ
readonly:    0
type:        UInt64
is_obsolete: 0
tier:        Production

3 rows in set. Elapsed: 0.001 sec.
```
