I just installed postgresql9.0.3 and when I went to the bin to run psql it asked for a password....I am typing the password which I gave at the time of installation but nothing is being written on the screen...when I press enter the psql closes.

What could be the problem?

  • @albin can u plz solve my problem
    – avinash
    Mar 12, 2011 at 9:10
  • On which OS are you installing PostgreSQL?
    – Chakra
    Mar 12, 2011 at 9:22

1 Answer 1


The most common reason seems to be that psql will usually assume your PostgreSQL user name is the same as your login name. If it's a new installation of PostgreSQL, you probably have only one username defined, though, and that's "postgres".

psql -U postgres

You might also need the -d, -h, and -p options.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.