How to rename a group in Redshift database

Below is the syntax to rename a group in Redshift database:

ALTER GROUP groupname   
RENAME TO new_groupname;
See also  How to cancel a running query in Redshift