Can't log into psql command line

postgresql

#1

Just installed postgres and ran the following command to login to psql:

` sudo -u postgres psql

The issue is I don’t remember my “[SUDO] password for ubuntu”`

What are my options to reset it, or finding out my old pw?


#2

Try sudo sudo -u postgres psql