set role postgres 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 change user role grant
=# ALTER USER role_specification WITH OPTION1 OPTION2 OPTION3;