how to add user to role postgre code example
Example 1: change role postgres
# make 'dave' superuser and allow him to create databases
ALTER ROLE dave WITH SUPERUSER;
ALTER ROLE dave WITH CREATEDB;
Example 2: postgresql create user roles
CREATE ROLE admin WITH CREATEDB CREATEROLE;