From 5d8fd32fd3faa64a736cf9d096fc2825356ed3b5 Mon Sep 17 00:00:00 2001 From: gurkanindibay Date: Wed, 17 Jan 2024 10:34:52 +0300 Subject: [PATCH] Adds grant all test --- .../regress/expected/grant_on_parameter_propagation.out | 6 +++--- src/test/regress/sql/grant_on_parameter_propagation.sql | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/expected/grant_on_parameter_propagation.out b/src/test/regress/expected/grant_on_parameter_propagation.out index ab32b2cd0..476297dae 100644 --- a/src/test/regress/expected/grant_on_parameter_propagation.out +++ b/src/test/regress/expected/grant_on_parameter_propagation.out @@ -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 diff --git a/src/test/regress/sql/grant_on_parameter_propagation.sql b/src/test/regress/sql/grant_on_parameter_propagation.sql index d20831941..437363b35 100644 --- a/src/test/regress/sql/grant_on_parameter_propagation.sql +++ b/src/test/regress/sql/grant_on_parameter_propagation.sql @@ -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;