Error code

PostgreSQL 28P01

POSTGRESQL28P01
Database Error Code· An error code returned by a database server such as PostgreSQL or MySQL.

What it means

invalid_password — authentication failed due to a wrong password.

How to fix it

  1. Verify that the correct password is being used and that environment variables or configuration files have not been stale-cached.
  2. Reset the role password with ALTER ROLE <name> PASSWORD '<new>' if the password has been lost.
  3. Check pg_hba.conf to confirm the expected authentication method (md5/scram-sha-256) matches what the client sends.

Not affiliated with PostgreSQL. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.