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

Code Example 1

# make 'dave' superuser and allow him to create databases
ALTER ROLE dave WITH SUPERUSER;
ALTER ROLE dave WITH CREATEDB;

Learn ReactJs, React Native from akashmittal.com