Meaning
PostgreSQL reported a connection failure due to network, auth, or server issues.
Causes
- Database server unavailable or restarting
- Network connectivity problems
- Idle connection terminated by firewall or proxy
Fixes
- Verify the database is running and reachable
- Check network routes and firewall rules
- Enable keepalive or reconnect logic
Example
ERROR: connection failure (SQLSTATE 08006)
FAQ
- Is this a network issue?
Often yes, but it can also be server downtime. - Should I retry?
Yes, with backoff, after checking server health.
Contact
Contact your DBA if the server is down.