fn is_authentication_failure(error: &PostgresError) -> boolExpand description
Reports whether the server refused the connection’s credentials, which is SQLSTATE class 28.
Amazon RDS was observed to answer two kinds of refused IAM connection
with an error in this class. With IAM authentication disabled for
replication, it reports password authentication failed. With a token
signed by a revoked role session, it reports PAM authentication failed.