ClickHouse元数据 6.配置相关的表


1. settings(设置信息)

包含有关当前用户的会话设置的信息

name type comment
name String 设置项名称
value String 设置项值
changed UInt8 显示设置是否从其默认值更改
description String 设置项描述
min Nullable(String) 设置的最小值,如果通过约束设置的话。
如果设置没有最小值,则为NULL
max Nullable(String) 设置的最大值,如果通过约束设置的话。
如果设置没有最小值,则为NULL
readonly UInt8 显示当前用户是否可以更改设置
0 当前用户可以更改设置
1 当前用户无法更改设置
type String 设置项类型

2. settings_profiles(配置文件属性)

设置配置文件的属性,需要grant权限。

name type comment
name String 设置配置文件名称
id UUID 设置配置文件 ID
storage String 设置配置文件的存储路径。 在 access_control_path 参数中配置
num_elements UInt64 system.settings_profile_elements 表中此配置文件的元素数
apply_to_all UInt8 显示为所有角色和/或用户设置的设置配置文件
apply_to_list Array(String) 应用设置配置文件的角色和/或用户的列表
apply_to_except Array(String) 设置配置文件应用于除列出的角色和/或用户之外的所有角色和/或用户

3. settings_profile_elements(配置文件元素)

配置文件的几个元素属性:约束、角色用户、继承父配置文件

name type comment
profile_name Nullable(String) 配置文件名称
user_name Nullable(String) 用户名
role_name Nullable(String) 角色名称
index UInt64 设置配置文件元素的序列号
setting_name Nullable(String) 设置名称
value Nullable(String) 设置值
min Nullable(String) 设置的最小值。 如果未设置,则为 NULL
max Nullable(String) 设置的最大值。 如果未设置,则为 NULL
readonly Nullable(UInt8) 仅允许读取查询的配置文件
inherit_profile Nullable(String) 此设置配置文件的父配置文件,将从其父配置文件继承所有设置的值和约束(最小、最大、只读)。如果未设置,则为 NULL

4. merge_tree_settings(设置信息-MergeTree )

记录MergeTree表的设置信息

name type comment
name String 设置项
value String 设置值
changed UInt8 设置是在配置中显式定义的还是显式更改的
description String 设置项描述
type String 设置项类型

文章作者: hnbian
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 hnbian !
评论
 上一篇
ClickHouse元数据 7.用户、角色与权限相关的表 ClickHouse元数据 7.用户、角色与权限相关的表
1. users(用户信息表) name type comment name String 用户名 id UUID 用户 ID。 storage String 用户存储的路径。在 access_control_path 参
2021-08-03
下一篇 
ClickHouse元数据 5.配额相关的表 ClickHouse元数据 5.配额相关的表
1. quotas(配额信息)包含有关配额的信息 name type comment name String 配额名称 id UUID 配额 ID storage String 配额的存储。可能的值:users.xml
2021-08-02
  目录