这是我的相关部分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 的对等身份验证失败”
我在哪里
peer为“postgres”配置了身份验证?是ident。当我更改以下行时
pg_hba.conf:local all all ident至
local all all md5它要求我输入密码,我可以登录。为什么更改本地连接类型会对 postgres 用户产生影响?