PostgreSQLRunbook 0/2 done
57014
PostgreSQL Error 57014: Query canceled
Error↻ Retryable · exponential backoffHTTP 504 Gateway TimeoutDatabase
TL;DR · 10-second read
The statement ran longer than statement_timeout, or was cancelled with pg_cancel_backend(). Add an index or raise the timeout for that one query with SET LOCAL statement_timeout.
Identify: does your log match?
What you see · exact log / response
ERROR: canceling statement due to statement timeout
Fix
Being written
Copy-paste fixes for 57014 are in the enrichment queue
The summary above is verified. Paste your full trace into the decoder for a diagnosis now.
Open the decoder →Related errors
Last verified 2026-10-09 · Source: Official Appendix A error codes (errcodes.txt in the postgres repo) · Official docs ↗ · ~4,400 searches/mo