PostgreSQL Error Reference
Every error, explained
SQLSTATE codes, condition names, root causes, diagnostic queries, and recovery steps — structured for engineers running PostgreSQL in production.
578 errors documentedFree diagnostics on every pageAll PG versions covered
Showing 578 of 578 errors
XX002
ERROR
index “…” contains unexpected zero page — XX002
index_corrupted
PostgreSQL error "index … contains unexpected zero page — XX002" (SQLSTATE XX002): what it means, common causes, and how to fix it.
Internal Error
XX002
PANIC
Index Corrupted — SQLSTATE XX002
index_corrupted
An index is corrupted.
Internal Error