mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
57 lines
2.7 KiB
Plaintext
57 lines
2.7 KiB
Plaintext
-- default
|
|
CREATE SETTINGS PROFILE s1_01294
|
|
-- same as default
|
|
CREATE SETTINGS PROFILE s2_01294
|
|
CREATE SETTINGS PROFILE s3_01294
|
|
-- rename
|
|
CREATE SETTINGS PROFILE s2_01294_renamed
|
|
-- settings
|
|
CREATE SETTINGS PROFILE s1_01294
|
|
CREATE SETTINGS PROFILE s2_01294 SETTINGS INHERIT default
|
|
CREATE SETTINGS PROFILE s3_01294 SETTINGS max_memory_usage = 5000000
|
|
CREATE SETTINGS PROFILE s4_01294 SETTINGS max_memory_usage MIN 5000000
|
|
CREATE SETTINGS PROFILE s5_01294 SETTINGS max_memory_usage MAX 5000000
|
|
CREATE SETTINGS PROFILE s6_01294 SETTINGS max_memory_usage READONLY
|
|
CREATE SETTINGS PROFILE s7_01294 SETTINGS max_memory_usage WRITABLE
|
|
CREATE SETTINGS PROFILE s8_01294 SETTINGS max_memory_usage = 5000000 MIN 4000000 MAX 6000000 READONLY
|
|
CREATE SETTINGS PROFILE s9_01294 SETTINGS INHERIT default, max_memory_usage = 5000000 WRITABLE
|
|
CREATE SETTINGS PROFILE s10_01294 SETTINGS INHERIT s1_01294, INHERIT s3_01294, INHERIT default, readonly = 0, max_memory_usage MAX 6000000
|
|
CREATE SETTINGS PROFILE s1_01294 SETTINGS readonly = 0
|
|
CREATE SETTINGS PROFILE s2_01294 SETTINGS readonly = 1
|
|
CREATE SETTINGS PROFILE s3_01294
|
|
-- to roles
|
|
CREATE SETTINGS PROFILE s1_01294
|
|
CREATE SETTINGS PROFILE s2_01294 TO ALL
|
|
CREATE SETTINGS PROFILE s3_01294 TO r1_01294
|
|
CREATE SETTINGS PROFILE s4_01294 TO u1_01294
|
|
CREATE SETTINGS PROFILE s5_01294 TO r1_01294, u1_01294
|
|
CREATE SETTINGS PROFILE s6_01294 TO ALL EXCEPT r1_01294
|
|
CREATE SETTINGS PROFILE s7_01294 TO ALL EXCEPT r1_01294, u1_01294
|
|
CREATE SETTINGS PROFILE s1_01294 TO u1_01294
|
|
CREATE SETTINGS PROFILE s2_01294
|
|
-- complex
|
|
CREATE SETTINGS PROFILE s1_01294 SETTINGS readonly = 0 TO r1_01294
|
|
CREATE SETTINGS PROFILE s1_01294 SETTINGS INHERIT default
|
|
-- multiple profiles in one command
|
|
CREATE SETTINGS PROFILE s1_01294 SETTINGS max_memory_usage = 5000000
|
|
CREATE SETTINGS PROFILE s2_01294 SETTINGS max_memory_usage = 5000000
|
|
CREATE SETTINGS PROFILE s3_01294 TO ALL
|
|
CREATE SETTINGS PROFILE s4_01294 TO ALL
|
|
CREATE SETTINGS PROFILE s1_01294 SETTINGS max_memory_usage = 6000000
|
|
CREATE SETTINGS PROFILE s2_01294 SETTINGS max_memory_usage = 6000000 TO r1_01294
|
|
CREATE SETTINGS PROFILE s3_01294 SETTINGS max_memory_usage = 6000000 TO r1_01294
|
|
CREATE SETTINGS PROFILE s4_01294 TO r1_01294
|
|
-- system.settings_profiles
|
|
s1_01294 local directory 0 0 [] []
|
|
s2_01294 local directory 1 0 ['r1_01294'] []
|
|
s3_01294 local directory 1 0 ['r1_01294'] []
|
|
s4_01294 local directory 1 0 ['r1_01294'] []
|
|
s5_01294 local directory 3 1 [] ['r1_01294']
|
|
-- system.settings_profile_elements
|
|
s2_01294 \N \N 0 readonly 0 \N \N \N \N
|
|
s3_01294 \N \N 0 max_memory_usage 5000000 4000000 6000000 1 \N
|
|
s4_01294 \N \N 0 max_memory_usage 5000000 \N \N \N \N
|
|
s5_01294 \N \N 0 \N \N \N \N \N default
|
|
s5_01294 \N \N 1 readonly 0 \N \N \N \N
|
|
s5_01294 \N \N 2 max_memory_usage \N \N 6000000 0 \N
|