Say you're seeing this message:
FATAL: Ident authentication failed for user "..."
What are the causes of this error message?
It means that Postgres is trying to authenticate a user using the Ident protocol, and can't. Ident auth works like this:
Not sure about the causes, but this fixed it for me:
change to this: