mirror of https://github.com/citusdata/citus.git
Adds grant all test
parent
dfbbcce212
commit
5d8fd32fd3
|
@ -56,10 +56,10 @@ SELECT check_parameter_privileges(ARRAY['grant_param_user1','grant_param_user2',
|
|||
--test the grant command admin option using grant_param_user1 with granted by
|
||||
set role grant_param_user1;
|
||||
SET citus.log_remote_commands to on;
|
||||
GRANT SET,ALTER SYSTEM ON PARAMETER max_connections,shared_buffers TO grant_param_user3 GRANTED BY grant_param_user1;
|
||||
NOTICE: issuing GRANT set, alter system ON PARAMETER max_connections, shared_buffers TO grant_param_user3 GRANTED BY grant_param_user1;
|
||||
GRANT ALL ON PARAMETER max_connections,shared_buffers TO grant_param_user3 GRANTED BY grant_param_user1;
|
||||
NOTICE: issuing GRANT ALL PRIVILEGES ON PARAMETER max_connections, shared_buffers TO grant_param_user3 GRANTED BY grant_param_user1;
|
||||
DETAIL: on server grant_param_user1@localhost:xxxxx connectionId: xxxxxxx
|
||||
NOTICE: issuing GRANT set, alter system ON PARAMETER max_connections, shared_buffers TO grant_param_user3 GRANTED BY grant_param_user1;
|
||||
NOTICE: issuing GRANT ALL PRIVILEGES ON PARAMETER max_connections, shared_buffers TO grant_param_user3 GRANTED BY grant_param_user1;
|
||||
DETAIL: on server grant_param_user1@localhost:xxxxx connectionId: xxxxxxx
|
||||
SELECT check_parameter_privileges(ARRAY['grant_param_user3'],ARRAY['max_connections','shared_buffers'], ARRAY['SET','ALTER SYSTEM']);
|
||||
check_parameter_privileges
|
||||
|
|
|
@ -18,7 +18,7 @@ SELECT check_parameter_privileges(ARRAY['grant_param_user1','grant_param_user2',
|
|||
--test the grant command admin option using grant_param_user1 with granted by
|
||||
set role grant_param_user1;
|
||||
SET citus.log_remote_commands to on;
|
||||
GRANT SET,ALTER SYSTEM ON PARAMETER max_connections,shared_buffers TO grant_param_user3 GRANTED BY grant_param_user1;
|
||||
GRANT ALL ON PARAMETER max_connections,shared_buffers TO grant_param_user3 GRANTED BY grant_param_user1;
|
||||
SELECT check_parameter_privileges(ARRAY['grant_param_user3'],ARRAY['max_connections','shared_buffers'], ARRAY['SET','ALTER SYSTEM']);
|
||||
|
||||
reset role;
|
||||
|
|
Loading…
Reference in New Issue