メインコンテンツへスキップ
メインコンテンツへスキップ

system.settings

説明

現在のユーザーのセッション設定に関する情報を含みます。

カラム

  • name (String) — 設定名。
  • value (String) — 設定値。
  • changed (UInt8) — 設定が設定ファイルで明示的に定義されているか、または明示的に変更されたかどうかを示します。
  • description (String) — 設定の簡単な説明。
  • min (Nullable(String)) — 制約によって設定された最小値 (存在する場合) 。設定に最小値がない場合は、NULL が格納されます。
  • max (Nullable(String)) — 制約によって設定された最大値 (存在する場合) 。設定に最大値がない場合は、NULL が格納されます。
  • disallowed_values (Array(String)) — 許可されていない値の一覧
  • readonly (UInt8) — 現在のユーザーがこの設定を変更できるかどうかを示します: 0 — 現在のユーザーはこの設定を変更できます、1 — 現在のユーザーはこの設定を変更できません。
  • type (String) — この設定に割り当てられる値の型。
  • default (String) — 設定のデフォルト値。
  • alias_for (String) — この設定が別の設定のエイリアスである場合の、元の設定名。
  • is_obsolete (UInt8) — 設定が廃止済みかどうかを示します。
  • tier (Enum8('Production' = 0, 'Obsolete' = 4, 'Experimental' = 8, 'Beta' = 12)) — この機能のサポートレベル。ClickHouse の機能はティアごとに分類されており、現在の 開発状況や、使用時に期待できる内容に応じて次のように区分されます:
  • PRODUCTION: この機能は安定しており、安全に使用できます。また、他の PRODUCTION 機能と組み合わせても問題はありません。
  • BETA: この機能は安定しており、安全に使用できます。他の機能と組み合わせた場合の結果は不明であり、正確性は保証されません。テストと報告を歓迎します。
  • EXPERIMENTAL: この機能は開発中です。開発者および ClickHouse 愛好家のみを対象としています。機能する場合もしない場合もあり、いつでも削除される可能性があります。
  • OBSOLETE: すでにサポートされていません。すでに削除されているか、今後のリリースで削除される予定です。

次の例は、名前に min_i を含む設定に関する情報を取得する方法を示しています。

SELECT *
FROM system.settings
WHERE name LIKE '%min_insert_block_size_%'
FORMAT Vertical
Row 1:
──────
name:        min_insert_block_size_rows
value:       1048449
changed:     0
description: Sets the minimum number of rows in the block that can be inserted into a table by an `INSERT` query. Smaller-sized blocks are squashed into bigger ones.

Possible values:

- Positive integer.
- 0 — Squashing disabled.
min:         ᴺᵁᴸᴸ
max:         ᴺᵁᴸᴸ
readonly:    0
type:        UInt64
default:     1048449
alias_for:   
is_obsolete: 0
tier:        Production

Row 2:
──────
name:        min_insert_block_size_bytes
value:       268402944
changed:     0
description: Sets the minimum number of bytes in the block which can be inserted into a table by an `INSERT` query. Smaller-sized blocks are squashed into bigger ones.

Possible values:

- Positive integer.
- 0 — Squashing disabled.
min:         ᴺᵁᴸᴸ
max:         ᴺᵁᴸᴸ
readonly:    0
type:        UInt64
default:     268402944
alias_for:   
is_obsolete: 0
tier:        Production

Row 3:
──────
name:        min_insert_block_size_rows_for_materialized_views
value:       0
changed:     0
description: Sets the minimum number of rows in the block which can be inserted into a table by an `INSERT` query. Smaller-sized blocks are squashed into bigger ones. This setting is applied only for blocks inserted into [materialized view](../../sql-reference/statements/create/view.md). By adjusting this setting, you control blocks squashing while pushing to materialized view and avoid excessive memory usage.

Possible values:

- Any positive integer.
- 0 — Squashing disabled.

## 関連項目            

- [min_insert_block_size_rows](/operations/settings/settings#min_insert_block_size_rows)
min:         ᴺᵁᴸᴸ
max:         ᴺᵁᴸᴸ
readonly:    0
type:        UInt64
default:     0
alias_for:   
is_obsolete: 0
tier:        Production

Row 4:
──────
name:        min_insert_block_size_bytes_for_materialized_views
value:       0
changed:     0
description: Sets the minimum number of bytes in the block which can be inserted into a table by an `INSERT` query. Smaller-sized blocks are squashed into bigger ones. This setting is applied only for blocks inserted into [materialized view](../../sql-reference/statements/create/view.md). By adjusting this setting, you control blocks squashing while pushing to materialized view and avoid excessive memory usage.

Possible values:

- Any positive integer.
- 0 — Squashing disabled.

## 関連項目            

- [min_insert_block_size_bytes](/operations/settings/settings#min_insert_block_size_bytes)
min:         ᴺᵁᴸᴸ
max:         ᴺᵁᴸᴸ
readonly:    0
type:        UInt64
default:     0
alias_for:   
is_obsolete: 0
tier:        Production

WHERE changed を使用すると、たとえば次のことを確認できます:

  • 設定ファイル内の設定が正しく読み込まれ、実際に使用されているかどうか。
  • 現在のセッションで変更された設定。
SELECT * FROM system.settings WHERE changed AND name='load_balancing'

関連項目