High severityconnectivity
Power BI Refresh Error:
57P01
What does this error mean?
The server is shutting down and terminated the connection. Typically occurs during planned maintenance or restarts.
Common causes
- 1Planned PostgreSQL server restart (e.g., configuration change, patch)
- 2Cloud provider maintenance window performing a failover
- 3pg_ctl stop or pg_terminate_backend called by an administrator
How to fix it
- 1Step 1: Check if the shutdown was planned — review maintenance logs or cloud provider events.
- 2Step 2: Add retry logic with backoff in pipelines to reconnect after the server comes back up.
- 3Step 3: Use a highly available setup (read replicas, Multi-AZ) to minimize downtime impact.
- 4Step 4: Set up monitoring alerts for admin shutdowns in MetricSign or CloudWatch.
Frequently asked questions
Official documentation: https://www.postgresql.org/docs/current/errcodes-appendix.html