If we choose the default installation for PostgreSQL, the client authentications are created as trust connection. So if we trying to connect to database by using a wrong password the connection will be established. To avoid this we can edit the pg_hba.conf and change the column METHOD from ‘trust’ to ‘password’. After changing we must restart Database Server.
Tags: Sessions
