Transferred from: http://blog.csdn.net/tingyuanss/article/details/43763899
New server with pgadmin3 error Peer authentication failed for user "Postgres"
Find the answer on StackOverflow, this error occurs because:
Peer authentication is the default configuration, and if your computer user name is the same as your Postgres database name, then this error does not occur and you do not need to set a password for your database.
There is also a MD5 authentication, which requires a password.
My Computer username and my database name are inconsistent, so I need to change the peer authentication to MD5 authentication and then set the password for the database.
Where to change?
/etc/postgresql/9.3/main/pg_hba.conf
Execute command
Locate the following line:
Local all Postgres peer
Change into
Local all Postgres MD5
Then restart PostgreSQL server
sudo service postgresql restart
Pgadmin3 New Server error authentication failed for user "Postgres" workaround