➜ ~ psql postgres
psql (9.6.10)
Type "help" for help.
postgres=# \du
postgres=# \du
postgres=# \password postgres
Enter new password:
Enter it again:
ERROR: role "postgres" does not exist
postgres=# \password heidsoft
Enter new password:
Enter it again:
postgres=#
postgres 角色密码修改