centosのpostgres
初期だとログインできないケースがある
# psql -U postgres
psql: FATAL: ユーザ "postgres" で対向(peer)認証に失敗しました
/var/lib/pgsql/data/pg_hba.conf
ファイルをみてみると
local all all peer
となっている、クライアントのログインユーザを元に判別する方法
まあ、centosのログインユーザや、root ではエラーとなる
pear を、trust にかえることで、パスワード不要になる
local all all trust
サービスを再起動する
サーバ接続にて、適切な認証を持っていれば、これでもよい