Skip to content
ClickHouse Docs
ClickHouse DocsClickHouse Docs

system.settings

説明

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

カラム

  • name (String) — 設定名。
  • value (String) — 設定値。
  • changed (UInt8) — 設定が config で明示的に定義されているか、または明示的に変更されたかを示します。
  • 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, 'PrivatePreview' = 16)) — この機能のサポートレベル。ClickHouse の機能は tier ごとに整理されており、現在の 開発状況や、使用時に期待できる内容に応じて区分されています:
    • PRODUCTION: この機能は安定しており、安全に使用でき、他の PRODUCTION 機能と組み合わせても問題はありません。
    • BETA: この機能は安定しており、安全に使用できます。他の機能と組み合わせて使用した場合の結果は不明で、正しさは保証されません。テストと報告を歓迎します。
    • EXPERIMENTAL: この機能は開発中です。開発者および ClickHouse 愛好家向けです。この機能は動作する場合もしない場合もあり、いつでも削除される可能性があります。
    • PRIVATE PREVIEW: この機能は一般提供に向けた明確な道筋にあります。適用範囲はまだ限定的であり、本番環境での使用は推奨されません。
    • OBSOLETE: すでにサポートされていません。すでに削除されているか、今後の release で削除される予定です。

以下の例では、名前に 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](/reference/statements/create/view). 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.

<div id="see-also">
  ## 関連項目
</div>

- [min_insert_block_size_rows](/reference/settings/session-settings/min-insert#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](/reference/statements/create/view). 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.

<div id="see-also">
  ## 関連項目
</div>

- [min_insert_block_size_bytes](/reference/settings/session-settings/min-insert#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'

関連項目

Navigation