Previously a message "password size does not match" was displayed when
client authentication failed. This could help an attacker to guess
password. Replace it just "password does not match".
Backpatch-through: v4.2
if (size != backend->pwd_size)
ereport(ERROR,
(errmsg("clear text password authentication failed"),
- errdetail("password size does not match")));
+ errdetail("password does not match")));
if (memcmp(pwd, backend->password, backend->pwd_size) != 0)
ereport(ERROR,