title: PostgreSQL: Resetting password of PostgreSQL on Ubuntu
body: <p>In Ubuntu, I installed PostgreSQL database and created a superuser for the server.</p>
  
  <p>If I forgot the password of the postgresql superuser, how can I reset it (the password) for that user?</p>
  
  <p>I tried uninstalling it and then installing it again but the previously created superuser is retained.</p>