PostgreSQL Error Reference

Every error, explained

SQLSTATE codes, condition names, root causes, diagnostic queries, and recovery steps — structured for engineers running PostgreSQL in production.

3908 errors documentedFree diagnostics on every pageAll PG versions covered

Showing 3600 of 3908 errors

55000 ERROR

cannot change NO INHERIT status of NOT NULL constraint “…” on relat… — 55000

object_not_in_prerequisite_state

PostgreSQL error "cannot change NO INHERIT status of NOT NULL constraint "…" on relation "…"" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State
55000 ERROR

incompatible NOT VALID constraint “…” on relation “…” — 55000

object_not_in_prerequisite_state

PostgreSQL error "incompatible NOT VALID constraint "…" on relation "…"" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State
55000 ERROR

cannot alter “two_phase” when logical replication worker is still r… — 55000

object_not_in_prerequisite_state

PostgreSQL error "cannot alter "two_phase" when logical replication worker is still running" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State
55000 ERROR

cannot disable “two_phase” when prepared transactions exist — 55000

object_not_in_prerequisite_state

PostgreSQL error "cannot disable "two_phase" when prepared transactions exist" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State
55000 ERROR

cannot alter retain_dead_tuples when logical replication worker is… — 55000

object_not_in_prerequisite_state

PostgreSQL error "cannot alter retain_dead_tuples when logical replication worker is still running" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State
55000 ERROR

“wal_level” is insufficient to create the replication slot required… — 55000

object_not_in_prerequisite_state

PostgreSQL error ""wal_level" is insufficient to create the replication slot required by retain_dead_tuples" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State
55000 ERROR

cannot reset replication origin with ID n because it is still in us… — 55000

object_not_in_prerequisite_state

PostgreSQL error "cannot reset replication origin with ID n because it is still in use by other processes" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State
55000 ERROR

cannot perform COPY FREEZE because the table was not created or tru… — 55000

object_not_in_prerequisite_state

PostgreSQL error "cannot perform COPY FREEZE because the table was not created or truncated in the current subtransaction" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State
55000 ERROR

ALTER SUBSCRIPTION … REFRESH is not allowed for disabled subscrip… — 55000

object_not_in_prerequisite_state

PostgreSQL error "ALTER SUBSCRIPTION ... REFRESH is not allowed for disabled subscriptions" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State
55000 ERROR

column “…” of relation “…” is not a stored generated column — 55000

object_not_in_prerequisite_state

PostgreSQL error "column "…" of relation "…" is not a stored generated column" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State
55000 ERROR

replication slots can only be used if max_replication_slots > 0 — 55000

object_not_in_prerequisite_state

PostgreSQL error "replication slots can only be used if max_replication_slots > 0" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State
55000 ERROR

replication slots can only be used if wal_level >= replica — 55000

object_not_in_prerequisite_state

PostgreSQL error "replication slots can only be used if wal_level >= replica" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State
55000 ERROR

logical decoding requires wal_level >= logical — 55000

object_not_in_prerequisite_state

PostgreSQL error "logical decoding requires wal_level >= logical" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State
55000 ERROR

cannot query or manipulate replication origin when max_replication_… — 55000

object_not_in_prerequisite_state

PostgreSQL error "cannot query or manipulate replication origin when max_replication_slots = 0" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State
55000 ERROR

could not convert table “…” to a view because it is not empty — 55000

object_not_in_prerequisite_state

PostgreSQL error "could not convert table "…" to a view because it is not empty" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State
55000 ERROR

could not convert table “…” to a view because it has indexes — 55000

object_not_in_prerequisite_state

PostgreSQL error "could not convert table "…" to a view because it has indexes" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State
55000 ERROR

could not convert table “…” to a view because it has child tables — 55000

object_not_in_prerequisite_state

PostgreSQL error "could not convert table "…" to a view because it has child tables" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State
55000 ERROR

could not convert table “…” to a view because it has parent tables — 55000

object_not_in_prerequisite_state

PostgreSQL error "could not convert table "…" to a view because it has parent tables" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State
55000 ERROR

could not convert table “…” to a view because it has row security e… — 55000

object_not_in_prerequisite_state

PostgreSQL error "could not convert table "…" to a view because it has row security enabled" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State
55000 ERROR

could not convert table “…” to a view because it has row security p… — 55000

object_not_in_prerequisite_state

PostgreSQL error "could not convert table "…" to a view because it has row security policies" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State
55000 ERROR

pg_log_standby_snapshot() can only be used if wal_level >= replica — 55000

object_not_in_prerequisite_state

PostgreSQL error "pg_log_standby_snapshot() can only be used if wal_level >= replica" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State
55000 ERROR

cannot copy invalidated replication slot “…” — 55000

object_not_in_prerequisite_state

PostgreSQL error "cannot copy invalidated replication slot "…"" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State
55000 ERROR

lost connection to the logical replication apply worker — 55000

object_not_in_prerequisite_state

PostgreSQL error "lost connection to the logical replication apply worker" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State
55000 ERROR

logical replication parallel apply worker exited due to error — 55000

object_not_in_prerequisite_state

PostgreSQL error "logical replication parallel apply worker exited due to error" (SQLSTATE 55000, object_not_in_prerequisite_state): what it means, common causes, and how to fix it.

Object Not In Prerequisite State