2020-06-01 21:43:16 +00:00
|
|
|
-- default
|
|
|
|
CREATE ROLE r1_01293
|
|
|
|
-- same as default
|
|
|
|
CREATE ROLE r2_01293
|
|
|
|
-- rename
|
|
|
|
CREATE ROLE r2_01293_renamed
|
|
|
|
-- host after @
|
|
|
|
CREATE ROLE r1_01293
|
|
|
|
CREATE ROLE r1_01293
|
|
|
|
CREATE ROLE `r2_01293@%.myhost.com`
|
|
|
|
CREATE ROLE `r2_01293@%.myhost.com`
|
|
|
|
-- settings
|
|
|
|
CREATE ROLE r1_01293
|
|
|
|
CREATE ROLE r2_01293 SETTINGS PROFILE default
|
|
|
|
CREATE ROLE r3_01293 SETTINGS max_memory_usage = 5000000
|
|
|
|
CREATE ROLE r4_01293 SETTINGS max_memory_usage MIN 5000000
|
|
|
|
CREATE ROLE r5_01293 SETTINGS max_memory_usage MAX 5000000
|
|
|
|
CREATE ROLE r6_01293 SETTINGS max_memory_usage READONLY
|
|
|
|
CREATE ROLE r7_01293 SETTINGS max_memory_usage WRITABLE
|
|
|
|
CREATE ROLE r8_01293 SETTINGS max_memory_usage = 5000000 MIN 4000000 MAX 6000000 READONLY
|
|
|
|
CREATE ROLE r9_01293 SETTINGS PROFILE default, max_memory_usage = 5000000 WRITABLE
|
|
|
|
CREATE ROLE r1_01293 SETTINGS readonly = 1
|
|
|
|
CREATE ROLE r2_01293 SETTINGS readonly = 1
|
|
|
|
CREATE ROLE r3_01293
|
|
|
|
-- multiple roles in one command
|
|
|
|
CREATE ROLE r1_01293
|
|
|
|
CREATE ROLE r2_01293
|
|
|
|
CREATE ROLE r1_01293 SETTINGS readonly = 1
|
|
|
|
CREATE ROLE r2_01293 SETTINGS readonly = 1
|
|
|
|
-- system.roles
|
2020-08-12 20:48:53 +00:00
|
|
|
r1_01293 local directory
|
2020-06-01 21:43:16 +00:00
|
|
|
-- system.settings_profile_elements
|
|
|
|
\N \N r1_01293 0 readonly 1 \N \N \N \N
|
|
|
|
\N \N r2_01293 0 \N \N \N \N \N default
|
|
|
|
\N \N r3_01293 0 max_memory_usage 5000000 4000000 6000000 0 \N
|
|
|
|
\N \N r4_01293 0 \N \N \N \N \N default
|
|
|
|
\N \N r4_01293 1 max_memory_usage 5000000 \N \N \N \N
|
|
|
|
\N \N r4_01293 2 readonly 1 \N \N \N \N
|