如何为同一主机/数据库/用户规则设置多个身份验证方法?我希望能够使用sudo -u postgres psql -U postgres
(无需输入PostgreSQL密码)和psql -U postgres --password
登录到我的postgres用户.类似于pg_hba中的以下内容.形态:
local all postgres md5
local all postgres peer
我只能同时使用一种或另一种方法.
谢谢
(我使用的是PostgreSQL 9.1).