PostgreSQL can read a default database password from an environment variable called PGPASSWORD. Rationale: Use of the PGPASSWORD environment variable implies PostgreSQL credentials are stored as clear text. Avoiding this may increase assurance that the confidentiality of PostgreSQL credentials is preserved.
Solution
Check which users and/or scripts are setting PGPASSWORD and change them to use a more secure method.