How to set PostgreSQL password after installation

1
2
sudo -u postgres psql
ALTER ROLE postgres WITH ENCRYPTED PASSWORD 'mypassword';