psql superuser code example
Example 1: postgresql change user role grant
=# ALTER USER librarian WITH SUPERUSER;
ALTER ROLE
Example 2: postgresql change user role grant
=# ALTER USER role_specification WITH OPTION1 OPTION2 OPTION3;
=# ALTER USER librarian WITH SUPERUSER;
ALTER ROLE
=# ALTER USER role_specification WITH OPTION1 OPTION2 OPTION3;