title_wip

[Edit this page](https://github.com/ClickHouse/ClickHouse/tree/master/docs/en/operations/system-tables/settings.md)

Contains information about session settings for current user.

Columns:

- `name` ([String](/docs/sql-reference/data-types/string)) — Setting name.
- `value` ([String](/docs/sql-reference/data-types/string)) — Setting value.
- `changed` ([UInt8](/docs/sql-reference/data-types/int-uint#integer-ranges)) — Shows whether the setting was explicitly defined in the config or explicitly changed.
- `description` ([String](/docs/sql-reference/data-types/string)) — Short setting description.
- `min` ([Nullable](/docs/sql-reference/data-types/nullable)([String](/docs/sql-reference/data-types/string))) — Minimum value of the setting, if any is set via [constraints](/docs/operations/settings/constraints-on-settings). If the setting has no minimum value, contains [NULL](/docs/operations/settings/formats#input_format_null_as_default).
- `max` ([Nullable](/docs/sql-reference/data-types/nullable)([String](/docs/sql-reference/data-types/string))) — Maximum value of the setting, if any is set via [constraints](/docs/operations/settings/constraints-on-settings). If the setting has no maximum value, contains [NULL](/docs/operations/settings/formats#input_format_null_as_default).
- `disallowed_values` ([Array](/docs/sql-reference/data-types/array)([String](/docs/sql-reference/data-types/string))) — List of disallowed values.
- `readonly` ([UInt8](/docs/sql-reference/data-types/int-uint#integer-ranges)) — Shows whether the current user can change the setting:
  - `0` — Current user can change the setting.
  - `1` — Current user can't change the setting.
- `default` ([String](/docs/sql-reference/data-types/string)) — Setting default value.
- `alias_for` ([String](/docs/sql-reference/data-types/string)) — The name of the original setting if the setting is an alias for another setting.
- `is_obsolete` ([UInt8](/docs/sql-reference/data-types/int-uint#integer-ranges)) - Shows whether a setting is obsolete.
- `tier` ([Enum8](/docs/sql-reference/data-types/enum)) — Support level for this feature. ClickHouse features are organized in tiers, varying depending on the current status of their development and the expectations one might have when using them. Values:
  - `'Production'` — The feature is stable, safe to use and does not have issues interacting with other **production** features. .
  - `'Beta'` — The feature is stable and safe. The outcome of using it together with other features is unknown and correctness is not guaranteed. Testing and reports are welcome.
  - `'Experimental'` — The feature is under development. Only intended for developers and ClickHouse enthusiasts. The feature might or might not work and could be removed at any time.
  - `'Obsolete'` — No longer supported. Either it is already removed or it will be removed in future releases.

**Example**

The following example shows how to get information about settings which name contains `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.

**See Also**

- [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.

**See also**

- [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
```

Using of `WHERE changed` can be useful, for example, when you want to check:

- Whether settings in configuration files are loaded correctly and are in use.
- Settings that changed in the current session.

```
SELECT * FROM system.settings WHERE changed AND name='load_balancing'
```

**See also**

- [Settings](/docs/operations/system-tables/overview#system-tables-introduction)
- [Permissions for Queries](/docs/operations/settings/permissions-for-queries)
- [Constraints on Settings](/docs/operations/settings/constraints-on-settings)
- [SHOW SETTINGS](/docs/sql-reference/statements/show#show-settings) statement

Was this page helpful?