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
|
2024-02-21 20:39:52 +00:00
|
|
|
CREATE ROLE r2_01293 SETTINGS PROFILE `default`
|
2020-06-01 21:43:16 +00:00
|
|
|
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
|
2022-09-12 22:12:40 +00:00
|
|
|
CREATE ROLE r6_01293 SETTINGS max_memory_usage CONST
|
2020-06-01 21:43:16 +00:00
|
|
|
CREATE ROLE r7_01293 SETTINGS max_memory_usage WRITABLE
|
2022-09-12 22:12:40 +00:00
|
|
|
CREATE ROLE r8_01293 SETTINGS max_memory_usage = 5000000 MIN 4000000 MAX 6000000 CONST
|
2024-02-21 20:39:52 +00:00
|
|
|
CREATE ROLE r9_01293 SETTINGS PROFILE `default`, max_memory_usage = 5000000 WRITABLE
|
2020-06-01 21:43:16 +00:00
|
|
|
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
|
2023-07-11 23:58:28 +00:00
|
|
|
r1_01293 local_directory
|
2020-06-01 21:43:16 +00:00
|
|
|
-- system.settings_profile_elements
|
2022-09-19 10:11:56 +00:00
|
|
|
\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 WRITABLE \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
|