I\'m a noob in PostgreSQL. I installed ver 9.2 on windows7. During installation it asked for password and i entered it. Now whenever i run d:\\tools\\PostgreSQL9.2\\bin\\psql.ex
change "trust" instead of "md5" in the pg_hba.conf to connect to the database and change your password.
--------------------configuration in pg_hba.conf--------------- local all all trust local all postgres trust host all all ::1/128 trust