【发布时间】:2012-07-11 16:14:34
【问题描述】:
如何为同一主机/数据库/用户规则设置多种身份验证方法?我希望能够同时使用sudo -u postgres psql -U postgres(无需输入PostgreSQL 密码)和psql -U postgres --password 登录我的postgres 用户。 pg_hba.conf 中类似以下内容:
local all postgres md5
local all postgres peer
我只能让一种方法或另一种方法同时工作。
谢谢。
(我使用的是 PostgreSQL 9.1)。
【问题讨论】:
标签: postgresql authentication postgresql-9.1