Every error, explained
SQLSTATE codes, condition names, root causes, diagnostic queries, and recovery steps — structured for engineers running PostgreSQL in production.
Showing 960 of 2212 errors
2B000
ERROR
Dependent Privilege Descriptors Still Exist — SQLSTATE 2B000
dependent_privilege_descriptors_still_exist
SQLSTATE 2B000 (dependent_privilege_descriptors_still_exist): Other objects still depend on the target object.
2BP01
ERROR
cannot drop … because other objects depend on it — 2BP01
dependent_objects_still_exist
PostgreSQL error "cannot drop … because other objects depend on it" (SQLSTATE 2BP01): what it means, common causes, and how to fix it.
2BP01
ERROR
Dependent Objects Still Exist — SQLSTATE 2BP01
dependent_objects_still_exist
The object cannot be dropped because other objects depend on it.
2BP01
ERROR
cannot drop column … of table … because other objects depend on it — 2BP01
dependent_objects_still_exist
PostgreSQL error "cannot drop column … of table … because other objects depend on it" (SQLSTATE 2BP01): what it means, common causes, and how to fix it.
2D000
ERROR
Invalid Transaction Termination — SQLSTATE 2D000
invalid_transaction_termination
SQLSTATE 2D000 (invalid_transaction_termination): The transaction termination is invalid.
2F000
ERROR
Sql Routine Exception — SQLSTATE 2F000
sql_routine_exception
SQLSTATE 2F000 (sql_routine_exception): An SQL function raised an error.
2F002
ERROR
Modifying Sql Data Not Permitted — SQLSTATE 2F002
modifying_sql_data_not_permitted
SQLSTATE 2F002 (modifying_sql_data_not_permitted): An SQL function raised an error.
2F003
ERROR
Prohibited Sql Statement Attempted — SQLSTATE 2F003
prohibited_sql_statement_attempted
SQLSTATE 2F003 (prohibited_sql_statement_attempted): An SQL function raised an error.
2F004
ERROR
Reading Sql Data Not Permitted — SQLSTATE 2F004
reading_sql_data_not_permitted
SQLSTATE 2F004 (reading_sql_data_not_permitted): An SQL function raised an error.
2F005
ERROR
Function Executed No Return Statement — SQLSTATE 2F005
function_executed_no_return_statement
SQLSTATE 2F005 (function_executed_no_return_statement): An SQL function raised an error.
2F005
ERROR
control reached end of function without RETURN — 2F005
function_executed_no_return_statement
PostgreSQL error "control reached end of function without RETURN" (SQLSTATE 2F005): what it means, common causes, and how to fix it.
34000
ERROR
Invalid Cursor Name — SQLSTATE 34000
invalid_cursor_name
The named cursor does not exist.
34000
ERROR
cursor “…” does not exist — 34000
invalid_cursor_name
PostgreSQL error "cursor "…" does not exist" (SQLSTATE 34000): what it means, common causes, and how to fix it.
34000
ERROR
portal “…” does not exist — 34000
see SQLSTATE
PostgreSQL error "portal "…" does not exist" (SQLSTATE 34000, see SQLSTATE): what it means, common causes, and how to fix it.
38000
ERROR
External Routine Exception — SQLSTATE 38000
external_routine_exception
SQLSTATE 38000 (external_routine_exception): An external (C) routine raised an error.
38001
ERROR
Containing Sql Not Permitted — SQLSTATE 38001
containing_sql_not_permitted
SQLSTATE 38001 (containing_sql_not_permitted): An external (C) routine raised an error.
38002
ERROR
Modifying Sql Data Not Permitted — SQLSTATE 38002
modifying_sql_data_not_permitted
SQLSTATE 38002 (modifying_sql_data_not_permitted): An external (C) routine raised an error.
38003
ERROR
Prohibited Sql Statement Attempted — SQLSTATE 38003
prohibited_sql_statement_attempted
SQLSTATE 38003 (prohibited_sql_statement_attempted): An external (C) routine raised an error.
38004
ERROR
Reading Sql Data Not Permitted — SQLSTATE 38004
reading_sql_data_not_permitted
SQLSTATE 38004 (reading_sql_data_not_permitted): An external (C) routine raised an error.
39000
ERROR
External Routine Invocation Exception — SQLSTATE 39000
external_routine_invocation_exception
SQLSTATE 39000 (external_routine_invocation_exception): An external routine invocation failed.
39001
ERROR
Invalid Sqlstate Returned — SQLSTATE 39001
invalid_sqlstate_returned
SQLSTATE 39001 (invalid_sqlstate_returned): An external routine invocation failed.
39004
ERROR
Null Value Not Allowed — SQLSTATE 39004
null_value_not_allowed
SQLSTATE 39004 (null_value_not_allowed): An external routine invocation failed.
39P01
ERROR
Trigger Protocol Violated — SQLSTATE 39P01
trigger_protocol_violated
SQLSTATE 39P01 (trigger_protocol_violated): An external routine invocation failed.
39P01
ERROR
suppress_redundant_updates_trigger: must be called as trigger — 39P01
trigger_protocol_violated
PostgreSQL error "suppress_redundant_updates_trigger: must be called as trigger" (SQLSTATE 39P01, trigger_protocol_violated): what it means, common causes, and how to fix it.