# Postgres error XX000: internal error

> Postgres hit a condition it considers a bug or an unexpected state, such as a cache lookup failure or corrupted data.

Source: https://scribase.com/postgres-errors/xx000

SQLSTATE class: Internal Error. Over PostgREST/supabase-js this maps to HTTP 500.

## Causes

- Concurrent DDL dropping an object while another session used it ("cache lookup failed").
- Data corruption, or a bug in Postgres or an extension.

## Fixes

- Retry once; transient catalog races resolve themselves.
- If it repeats, note the exact message and query and check the server log; with corruption suspected, take a backup first and use amcheck before anything else.