On 18th of November Tom Lane committed patch by Laurenz Albe which adds very interesting capability: Add a hook to CREATE/ALTER ROLE to allow an external module to check the strength of database passwords, and create a sample implementation of such a hook ...
Let's say you're in situation when you have to connect to PostgreSQL, but you have no idea on what password might be set. But some definitely is, as you get this error message: => psql Password: psql: FATAL: password authentication failed for ...
