I work with PostgreSQL 9.2 and have command:
psql -h localhost -U testdb -d postgis
This command has the ability to connect database without password. I want to enter a password.
My pg_hba.cconf is:
local   all             all                                     password
# IPv4 local connections:
host    all             all             127.0.0.1/32            md5
# IPv6 local connections:
host    all             all             ::1/128                 md5
 
     
    