본문으로 바로가기
본문으로 바로가기

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)) — 이 기능의 지원 수준입니다. 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'

관련 항목