I am trying to use PostgreSQL so that I can deploy to Heroku. However I cannot run localhost anymore why? I get the following message:
PG::ConnectionBad FATA
Use this command to use your Postgres user:
sudo su - postgres
Now use this command to create a user:
createuser -s -r 'user_name'
Now logout.
The error is resolved.