I forgot passw for postgres DB so I have removed postgreSQL from system and I reinstalled it again with new passw. Now I can access postgres from SQL shell as postgres user by entering new passw and it works.
However when Im trying to open postgres from CMD, by executing psql postgres Im prompted to enter passw for user Pet. If I provide dbname and username in CMD psql postgres postgres then it doesnt attempt to log me in as Pet, it just accept my passw and log me in as postgres user. My question is why does it prompt me to log as Pet if I dont provide username? I havent set up Pet as user for Postgres DB, so it shouldnt even be asking for Pet passw which I have never set up, should it?