ClickHouse/doc/reference/en/system_tables/system.settings.rst

26 lines
964 B
ReStructuredText
Raw Normal View History

2017-04-03 19:49:50 +00:00
system.settings
---------------
2017-04-26 17:37:55 +00:00
Contains information about settings that are currently in use (i.e. used for executing the query you are using to read from the system.settings table).
2017-04-03 19:49:50 +00:00
2017-04-26 17:37:55 +00:00
Columns:
2017-04-03 19:49:50 +00:00
::
2017-04-26 17:37:55 +00:00
name String - Setting name.
value String - Setting value.
changed UInt8 - Whether the setting was explicitly defined in the config or explicitly changed.
2017-04-03 19:49:50 +00:00
2017-04-26 17:37:55 +00:00
Example:
2017-04-03 19:49:50 +00:00
.. code-block:: sql
SELECT *
FROM system.settings
WHERE changed
┌─name───────────────────┬─value───────┬─changed─┐
│ max_threads │ 8 │ 1 │
│ use_uncompressed_cache │ 0 │ 1 │
│ load_balancing │ random │ 1 │
│ max_memory_usage │ 10000000000 │ 1 │
└────────────────────────┴─────────────┴─────────┘