EC
🐘

PostgreSQL SQLSTATE Errors

PostgreSQL 17256 codes

SQLSTATE error codes with SQL fix examples

Showing 256 of 256 errors
CodeMessage
23505duplicate key value violates unique constraint→
23503insert or update on table violates foreign key constraint→
42P01relation does not exist→
42703column does not exist→
08006connection failure→
28000invalid authorization specification→
40001could not serialize access due to concurrent update→
40P01deadlock detected→
22001value too long for type character varying→
53100disk full→
42601syntax error at or near "..."β†’
55P03lock not available→
22P02invalid input syntax for type integer→
42501permission denied for table→
57014canceling statement due to statement timeout→
23514new row for relation violates check constraint→
42710duplicate object→
42P07relation already exists→
0A000feature not supported→
25P02current transaction is aborted, commands ignored until end of transaction block→
55000object not in prerequisite state→
08001could not connect to server→
22003numeric value out of range→
42883function does not exist→
53200out of memory→
42846cannot cast type→
22007invalid input syntax for type date→
23502null value in column violates not-null constraint→
42P18could not determine data type of parameter $N→
XX000internal error→
57P03the database system is starting up→
57P01terminating connection due to administrator command→
58000could not open file→
53300remaining connection slots are reserved for non-replication superuser connections→
3D000database does not exist→
3F000invalid schema name→
42P16invalid table definition→
2BP01cannot drop table because other objects depend on it→
25001active SQL transaction→
2D000invalid transaction termination→
00000successful completion→
01000warning→
0100Cdynamic result sets returned→
01008implicit zero bit padding→
01003null value eliminated in set function→
01007privilege not granted→
01006privilege not revoked→
01004string data right truncation→
01P01deprecated feature→
02000no data→
02001no additional dynamic result sets returned→
03000sql statement not yet complete→
08000connection exception→
08003connection does not exist→
08004sqlserver rejected establishment of sqlconnection→
08007transaction resolution unknown→
08P01protocol violation→
09000triggered action exception→
0B000invalid transaction initiation→
0F000locator exception→
0F001invalid locator specification→
0L000invalid grantor→
0LP01invalid grant operation→
0P000invalid role specification→
0Z000diagnostics exception→
0Z002stacked diagnostics accessed without active handler→
20000case not found→
21000cardinality violation→
22000data exception→
2202Earray subscript error→
22021character not in repertoire→
22008datetime field overflow→
22012division by zero→
22005error in assignment→
2200Bescape character conflict→
22022indicator overflow→
22015interval field overflow→
2201Einvalid argument for logarithm→
22014invalid argument for ntile function→
22016invalid argument for nth_value function→
2201Finvalid argument for power function→
2201Ginvalid argument for width_bucket function→
22018invalid character value for cast→
22019invalid escape character→
2200Dinvalid escape octet→
22025invalid escape sequence→
22P06nonstandard use of escape character→
22010invalid indicator parameter value→
22023invalid parameter value→
22013invalid preceding or following size in window function→
2201Binvalid regular expression→
2201Winvalid row count in LIMIT clause→
2201Xinvalid row count in result offset clause→
2202Hinvalid tablesample argument→
2202Ginvalid tablesample repeat→
22009invalid time zone displacement value→
2200Cinvalid use of escape character→
2200Gmost specific type mismatch→
22004null value not allowed→
22002null value, no indicator parameter→
2200Hsequence generator limit exceeded→
22026string data length mismatch→
22011substring error→
22027trim error→
22024unterminated C string→
2200Fzero length character string→
22P01floating point exception→
22P03invalid binary representation→
22P04bad copy file format→
22P05untranslatable character→
2200Lnot an XML document→
2200Minvalid XML document→
2200Ninvalid XML content→
2200Sinvalid XML comment→
2200Tinvalid XML processing instruction→
22030invalid argument for SQL/JSON datetime function→
22031invalid argument for SQL/JSON datetime function→
22032invalid JSON text→
22033invalid SQL/JSON subscript→
22034more than one SQL/JSON item→
22035no SQL/JSON item→
22036non-numeric SQL/JSON item→
22037non-unique keys in a JSON object→
22038singleton SQL/JSON item required→
22039SQL/JSON array not found→
2203ASQL/JSON member not found→
2203BSQL/JSON number not found→
2203CSQL/JSON object not found→
2203Dtoo many JSON array elements→
2203Etoo many JSON object members→
2203FSQL/JSON scalar required→
2203GSQL/JSON item cannot be cast to target type→
23000integrity constraint violation→
23001restrict violation→
23P01exclusion constraint violation→
24000invalid cursor state→
25000invalid transaction state→
25002active SQL transaction→
25008held cursor requires same isolation level→
25003inappropriate access mode for branch transaction→
25004inappropriate isolation level for branch transaction→
25005no active SQL transaction for branch transaction→
25006read only SQL transaction→
25007schema and data statement mixing not supported→
25P01no active SQL transaction→
25P03idle in transaction session timeout→
25P04transaction timeout→
26000invalid SQL statement name→
27000triggered data change violation→
28P01invalid password→
2B000dependent privilege descriptors still exist→
2F000SQL routine exception→
2F002modifying SQL data not permitted→
2F003prohibited SQL statement attempted→
2F004reading SQL data not permitted→
2F005function executed in wrong section of rule→
34000invalid cursor name→
38000external routine exception→
38001containing SQL not permitted→
38002modifying SQL data not permitted→
38003prohibited SQL statement attempted→
38004reading SQL data not permitted→
39000external routine invocation exception→
39001invalid SQLSTATE returned→
39004null value not allowed→
39P01trigger protocol violated→
39P02SRF protocol violated→
39P03event trigger protocol violated→
3B000savepoint exception→
3B001invalid savepoint specification→
40000transaction rollback→
40002transaction integrity constraint violation→
40003statement completion unknown→
42000syntax error or access rule violation→
42803grouping error→
42P20windowing error→
42P19invalid recursion→
42830invalid foreign key→
42602invalid name→
42622name too long→
42939reserved name→
42804datatype mismatch→
42P21indeterminate collation→
42P22indeterminate datatype→
42809wrong object type→
428C9generated always→
42P02undefined parameter→
42704undefined object→
42701duplicate column→
42P03duplicate cursor→
42P04duplicate database→
42P05duplicate prepared statement→
42P06duplicate schema→
42P08ambiguous parameter→
42P09ambiguous alias→
42P10invalid column reference→
42P11invalid cursor definition→
42P12invalid database definition→
42P13invalid function definition→
42P14invalid prepared statement definition→
42P15invalid schema definition→
42P17invalid object definition→
44000WITH CHECK OPTION violation→
53000insufficient resources→
53400configuration limit exceeded→
54000program limit exceeded→
54001statement too complex→
54011too many columns→
54023too many arguments→
55006object in use→
55P02cannot change runtime parameter→
55P04unsafe use of new enum value→
57000operator intervention→
57P02crash shutdown→
57P04database dropped→
57P05idle session timeout→
58030I/O error→
58P01undefined file→
58P02duplicate file→
F0000config file error→
F0001lock file exists→
HV000FDW error→
HV001FDW out of memory→
HV002FDW dynamic parameter value needed→
HV004FDW invalid data type→
HV005FDW column name not found→
HV006FDW invalid data type descriptors→
HV007FDW invalid column name→
HV008FDW invalid column number→
HV009FDW invalid use of null pointer→
HV00Afdw_invalid_string_format→
HV00Bfdw_invalid_handle→
HV00Cfdw_invalid_option_index→
HV00Dfdw_invalid_option_name→
HV00Jfdw_option_name_not_found→
HV00Kfdw_reply_handle→
HV00Lfdw_unable_to_create_execution→
HV00Mfdw_unable_to_create_reply→
HV00Nfdw_unable_to_establish_connection→
HV010fdw_function_sequence_error→
HV021fdw_inconsistent_descriptor_information→
HV024fdw_invalid_attribute_value→
HV090fdw_invalid_string_length_or_buffer_length→
HV091fdw_invalid_descriptor_field_identifier→
P0000plpgsql_error→
P0001raise_exception→
P0002no_data_found→
P0003too_many_rows→
P0004assert_failure→
XX001data_corrupted→
XX002index_corrupted→
72000Snapshot too old — query snapshot has expired→
HV00Pfdw_no_schemas→
HV00Qfdw_option_name_not_found→
HV00Rfdw_unable_to_create_reply→
LW000fdw_error (logical replication / LW class)β†’