事象
$ pcp_node_info -v -h localhost -U pgpool -n 1 -w
FATAL: authentication failed for user "pgpool"
DETAIL: username and/or password does not match
原因
- ~/.pcppass のパーミッションが適切でない場合も上記エラーになる。
解決策
$ chmod 600 ~/.pcppass
$ pcp_node_info -v -h localhost -U pgpool -n 1 -w
Hostname : aurora-postgresql11.cluster-ro-******.ap-northeast-1.rds.amazonaws.com
Port : 5432
Status : 1
Weight : 1.000000
Status Name : waiting
Role : standby
Replication Delay : 0
Replication State :
Replication Sync State :
Last Status Change : 2020-09-30 20:30:31