alter user psql code example
Example 1: alter user password postgres
ALTER USER user_name WITH PASSWORD 'new_password';
Example 2: postgresql change user role grant
=# ALTER USER librarian WITH SUPERUSER;
ALTER ROLE
ALTER USER user_name WITH PASSWORD 'new_password';
=# ALTER USER librarian WITH SUPERUSER;
ALTER ROLE