mirror of https://github.com/citusdata/citus.git
Adds role output
parent
1eb73702e7
commit
d8448dd088
|
@ -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;
|
Loading…
Reference in New Issue