Error code

PostgreSQL 28000

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

What it means

invalid_authorization_specification — the role is not permitted to connect.

How to fix it

  1. Add a matching entry in pg_hba.conf and reload PostgreSQL with pg_ctlcluster or SELECT pg_reload_conf().
  2. Grant the CONNECT privilege with GRANT CONNECT ON DATABASE <db> TO <role>.
  3. Ensure the role has the LOGIN attribute: ALTER ROLE <name> LOGIN.

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