what does peer authentication mean for postgresql?

It means that the system attempted peer authentication (…obtaining the client's operating system user name from the kernel and using it as the allowed database user name (with optional user name mapping). This method is only supported on local connections.), and it failed.

Is your pg_hba.conf configured for peer authentication for local connections?
If so you may need to change that to a more appropriate auth method such as md5 or trust(not recommended).
Refer to the Postgres Manual for more information.


You should explicitly specify the --host parameter and then Password authentication will be used instead of Peer.

Example:

psql -u someuser -h 127.0.0.1