这是我
pg_hba.conf
的相关部分:# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all ident
# IPv4 local connections:
host all all 127.0.0.1/32 ident
# IPv6 local connections:
host all all ::1/128 ident
pidentd服务正在运行。
当我尝试登录ee1时(我假设默认用户为postgres):
psql ee1
提示信息为“用户postgres的对等身份验证失败”
Where have I configured
peer
authentication for "postgres" ? It'sident
.When I change the following line in
pg_hba.conf
:local all all ident
to
local all all md5
it asks me for a password, and I am able to log in. Why is it that making changes to the local connection type, have effect on postgres user?