From d8448dd08831132bb7781a187cd05e9c9a65f320 Mon Sep 17 00:00:00 2001 From: gurkanindibay Date: Sun, 17 Dec 2023 20:17:54 +0300 Subject: [PATCH] Adds role output --- src/test/regress/expected/comment_on_role.out | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/src/test/regress/expected/comment_on_role.out b/src/test/regress/expected/comment_on_role.out index e69de29bb..dad4f4533 100644 --- a/src/test/regress/expected/comment_on_role.out +++ b/src/test/regress/expected/comment_on_role.out @@ -0,0 +1,38 @@ +set citus.log_remote_commands to on; +set citus.grep_remote_commands to 'COMMENT ON ROLE'; +create role role1; +comment on ROLE role1 is 'test-comment'; +SELECT result FROM run_command_on_all_nodes( + $$ + SELECT ds.description AS role_comment + FROM pg_roles r + LEFT JOIN pg_shdescription ds ON r.oid = ds.objoid + WHERE r.rolname = 'role1'; + $$ +); + result +--------------------------------------------------------------------- + test-comment + test-comment + test-comment +(3 rows) + +comment on role role1 is 'comment-needs\!escape'; +SELECT result FROM run_command_on_all_nodes( + $$ + SELECT ds.description AS role_comment + FROM pg_roles r + LEFT JOIN pg_shdescription ds ON r.oid = ds.objoid + WHERE r.rolname = 'role1'; + $$ +); + result +--------------------------------------------------------------------- + comment-needs\!escape + comment-needs\!escape + comment-needs\!escape +(3 rows) + +drop role role1; +reset citus.grep_remote_commands; +reset citus.log_remote_commands;