alter role change password postgresql code example
Example 1: alter user password postgres
ALTER USER user_name WITH PASSWORD 'new_password';
Example 2: change role postgres
# make 'dave' superuser and allow him to create databases
ALTER ROLE dave WITH SUPERUSER;
ALTER ROLE dave WITH CREATEDB;