mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 09:52:38 +00:00
39 lines
1.4 KiB
Plaintext
39 lines
1.4 KiB
Plaintext
-- 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 CONST
|
|
CREATE ROLE r7_01293 SETTINGS max_memory_usage WRITABLE
|
|
CREATE ROLE r8_01293 SETTINGS max_memory_usage = 5000000 MIN 4000000 MAX 6000000 CONST
|
|
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
|
|
r1_01293 local_directory
|
|
-- 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 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
|