2020-06-01 21:43:16 +00:00
|
|
|
-- 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
|
2021-04-05 10:28:39 +00:00
|
|
|
CREATE SETTINGS PROFILE s2_01294 SETTINGS max_memory_usage = 6000000
|
|
|
|
CREATE SETTINGS PROFILE s3_01294 TO ALL
|
|
|
|
CREATE SETTINGS PROFILE s4_01294 TO ALL
|
|
|
|
CREATE SETTINGS PROFILE s1_01294 SETTINGS max_memory_usage = 6000000
|
2020-06-01 21:43:16 +00:00
|
|
|
CREATE SETTINGS PROFILE s2_01294 SETTINGS max_memory_usage = 6000000 TO r1_01294
|
2021-04-05 10:28:39 +00:00
|
|
|
CREATE SETTINGS PROFILE s3_01294 TO r1_01294
|
2020-06-01 21:43:16 +00:00
|
|
|
CREATE SETTINGS PROFILE s4_01294 TO r1_01294
|
2020-10-14 17:30:24 +00:00
|
|
|
-- readonly ambiguity
|
|
|
|
CREATE SETTINGS PROFILE s1_01294 SETTINGS readonly = 1
|
|
|
|
CREATE SETTINGS PROFILE s2_01294 SETTINGS readonly READONLY
|
|
|
|
CREATE SETTINGS PROFILE s3_01294 SETTINGS INHERIT readonly
|
|
|
|
CREATE SETTINGS PROFILE s4_01294 SETTINGS INHERIT readonly, INHERIT readonly
|
|
|
|
CREATE SETTINGS PROFILE s5_01294 SETTINGS INHERIT readonly, readonly = 1
|
|
|
|
CREATE SETTINGS PROFILE s6_01294 SETTINGS INHERIT readonly, readonly READONLY
|
2020-06-01 21:43:16 +00:00
|
|
|
-- system.settings_profiles
|
2020-08-12 20:48:53 +00:00
|
|
|
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'] []
|
2021-04-05 10:28:39 +00:00
|
|
|
s5_01294 local directory 3 0 ['u1_01294'] []
|
|
|
|
s6_01294 local directory 0 1 [] ['r1_01294','u1_01294']
|
2020-06-01 21:43:16 +00:00
|
|
|
-- 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
|