Adds grant all test

grant_parameter_propagation
gurkanindibay 2024-01-17 10:34:52 +03:00
parent dfbbcce212
commit 5d8fd32fd3
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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;