While I try to connect to Postgres through PGAdmin I get the following error:
Error connecting to the server: FATAL: Peer authentication failed for user "postgres"
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It only takes a minute to sign up.Sign up to join this community
You're trying to use
peer authentication (the default for unix sockets) from a user other than the user identity you are connecting as.
ALTER USER postgres PASSWORD 'blah'then connect over TCP/IP with
md5password authentication by filling in the hostname and password fields
For more information see the Ubuntu docs on their PostgreSQL install (I'm assuming you're using Ubuntu since you didn't say) and the PostgreSQL documentation on client authentication.