Check out example codes for "postgresql change user role grant". It will help you in understanding the concepts better.

Code Example 1

=# ALTER USER role_specification WITH OPTION1 OPTION2 OPTION3;

Code Example 2

=# ALTER USER librarian WITH SUPERUSER;
ALTER ROLE

Learn ReactJs, React Native from akashmittal.com