Several days ago I install postgesql 9.2 version on my local computer. (OS windows 7)
Now I forgot my password and I can not login in pgAdmin.
How to change pos
Below steps helped me to reset the password-
Go to pg_hba.conf
file at path e.g. C:\Program Files\PostgreSQL\10\data
and add below line at the end,
host all postgres 127.0.0.1/32 trust
Restart the PostgreSQL service from services control panel (start -> run -> services.msc)
Connect using PgAdmin or any software that you prefer and run query,
ALTER USER postgres PASSWORD 'postgres'
Remove the line that you added in step 1.
Restart PostgreSQL.