# How to run sql-postgres without password?

My PostgreSQL authenticates using Unix Domain Sockets (Trust Authentication). When I run psql I do not need a password to connect to the database.

But when I run sql-postgres, I am always asked for a password. How can I tell Emacs, that I have no password?

• How does psql know the socket to use? (echo \$PGPORT might tell you think if you don't know.) – Realraptor Apr 17 at 20:14

I had to set server to /var/run/postgresql in the customization of sql-postgres-login-params.
'(sql-postgres-login-params