Trusted Language Extensions for PostgreSQL (pg_tle) now supports client authentication hook that lets you run additional checks over the existing authentication process, allowing you to enhance the security posture of your databases. A hook is an internal callback mechanism available to developers for extending PostgreSQL’s core functionality. By using hooks, developers can implement their own functions or procedures for use during various database operations.
Source:: Amazon AWS