pub enum PgSqlErrorCode {
Show 257 variants
ERRCODE_SUCCESSFUL_COMPLETION = 0,
ERRCODE_WARNING = 64,
ERRCODE_WARNING_DYNAMIC_RESULT_SETS_RETURNED = 318_767_168,
ERRCODE_WARNING_IMPLICIT_ZERO_BIT_PADDING = 134_217_792,
ERRCODE_WARNING_NULL_VALUE_ELIMINATED_IN_SET_FUNCTION = 50_331_712,
ERRCODE_WARNING_PRIVILEGE_NOT_GRANTED = 117_440_576,
ERRCODE_WARNING_PRIVILEGE_NOT_REVOKED = 100_663_360,
ERRCODE_WARNING_STRING_DATA_RIGHT_TRUNCATION = 67_108_928,
ERRCODE_WARNING_DEPRECATED_FEATURE = 16_908_352,
ERRCODE_NO_DATA = 128,
ERRCODE_NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED = 16_777_344,
ERRCODE_SQL_STATEMENT_NOT_YET_COMPLETE = 192,
ERRCODE_CONNECTION_EXCEPTION = 512,
ERRCODE_CONNECTION_DOES_NOT_EXIST = 50_332_160,
ERRCODE_CONNECTION_FAILURE = 100_663_808,
ERRCODE_SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION = 16_777_728,
ERRCODE_SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION = 67_109_376,
ERRCODE_TRANSACTION_RESOLUTION_UNKNOWN = 117_441_024,
ERRCODE_PROTOCOL_VIOLATION = 16_908_800,
ERRCODE_TRIGGERED_ACTION_EXCEPTION = 576,
ERRCODE_FEATURE_NOT_SUPPORTED = 1_088,
ERRCODE_INVALID_TRANSACTION_INITIATION = 1_152,
ERRCODE_LOCATOR_EXCEPTION = 1_408,
ERRCODE_L_E_INVALID_SPECIFICATION = 16_778_624,
ERRCODE_INVALID_GRANTOR = 1_792,
ERRCODE_INVALID_GRANT_OPERATION = 16_910_080,
ERRCODE_INVALID_ROLE_SPECIFICATION = 2_048,
ERRCODE_DIAGNOSTICS_EXCEPTION = 2_688,
ERRCODE_STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER = 33_557_120,
ERRCODE_CASE_NOT_FOUND = 2,
ERRCODE_CARDINALITY_VIOLATION = 66,
ERRCODE_DATA_EXCEPTION = 130,
ERRCODE_ARRAY_ELEMENT_ERROR = 352_845_954,
ERRCODE_CHARACTER_NOT_IN_REPERTOIRE = 17_301_634,
ERRCODE_DATETIME_FIELD_OVERFLOW = 134_217_858,
ERRCODE_DIVISION_BY_ZERO = 33_816_706,
ERRCODE_ERROR_IN_ASSIGNMENT = 83_886_210,
ERRCODE_ESCAPE_CHARACTER_CONFLICT = 301_990_018,
ERRCODE_INDICATOR_OVERFLOW = 34_078_850,
ERRCODE_INTERVAL_FIELD_OVERFLOW = 84_148_354,
ERRCODE_INVALID_ARGUMENT_FOR_LOG = 352_583_810,
ERRCODE_INVALID_ARGUMENT_FOR_NTILE = 67_371_138,
ERRCODE_INVALID_ARGUMENT_FOR_NTH_VALUE = 100_925_570,
ERRCODE_INVALID_ARGUMENT_FOR_POWER_FUNCTION = 369_361_026,
ERRCODE_INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION = 386_138_242,
ERRCODE_INVALID_CHARACTER_VALUE_FOR_CAST = 134_480_002,
ERRCODE_INVALID_DATETIME_FORMAT = 117_440_642,
ERRCODE_INVALID_ESCAPE_CHARACTER = 151_257_218,
ERRCODE_INVALID_ESCAPE_OCTET = 335_544_450,
ERRCODE_INVALID_ESCAPE_SEQUENCE = 84_410_498,
ERRCODE_NONSTANDARD_USE_OF_ESCAPE_CHARACTER = 100_794_498,
ERRCODE_INVALID_INDICATOR_PARAMETER_VALUE = 262_274,
ERRCODE_INVALID_PARAMETER_VALUE = 50_856_066,
ERRCODE_INVALID_PRECEDING_OR_FOLLOWING_SIZE = 50_593_922,
ERRCODE_INVALID_REGULAR_EXPRESSION = 302_252_162,
ERRCODE_INVALID_ROW_COUNT_IN_LIMIT_CLAUSE = 654_573_698,
ERRCODE_INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE = 671_350_914,
ERRCODE_INVALID_TABLESAMPLE_ARGUMENT = 403_177_602,
ERRCODE_INVALID_TABLESAMPLE_REPEAT = 386_400_386,
ERRCODE_INVALID_TIME_ZONE_DISPLACEMENT_VALUE = 150_995_074,
ERRCODE_INVALID_USE_OF_ESCAPE_CHARACTER = 318_767_234,
ERRCODE_MOST_SPECIFIC_TYPE_MISMATCH = 385_876_098,
ERRCODE_NULL_VALUE_NOT_ALLOWED = 67_108_994,
ERRCODE_NULL_VALUE_NO_INDICATOR_PARAMETER = 33_554_562,
ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE = 50_331_778,
ERRCODE_SEQUENCE_GENERATOR_LIMIT_EXCEEDED = 402_653_314,
ERRCODE_STRING_DATA_LENGTH_MISMATCH = 101_187_714,
ERRCODE_STRING_DATA_RIGHT_TRUNCATION = 16_777_346,
ERRCODE_SUBSTRING_ERROR = 17_039_490,
ERRCODE_TRIM_ERROR = 117_964_930,
ERRCODE_UNTERMINATED_C_STRING = 67_633_282,
ERRCODE_ZERO_LENGTH_CHARACTER_STRING = 369_098_882,
ERRCODE_FLOATING_POINT_EXCEPTION = 16_908_418,
ERRCODE_INVALID_TEXT_REPRESENTATION = 33_685_634,
ERRCODE_INVALID_BINARY_REPRESENTATION = 50_462_850,
ERRCODE_BAD_COPY_FILE_FORMAT = 67_240_066,
ERRCODE_UNTRANSLATABLE_CHARACTER = 84_017_282,
ERRCODE_NOT_AN_XML_DOCUMENT = 469_762_178,
ERRCODE_INVALID_XML_DOCUMENT = 486_539_394,
ERRCODE_INVALID_XML_CONTENT = 503_316_610,
ERRCODE_INVALID_XML_COMMENT = 587_202_690,
ERRCODE_INVALID_XML_PROCESSING_INSTRUCTION = 603_979_906,
ERRCODE_DUPLICATE_JSON_OBJECT_KEY_VALUE = 786_562,
ERRCODE_INVALID_JSON_TEXT = 34_340_994,
ERRCODE_INVALID_SQL_JSON_SUBSCRIPT = 51_118_210,
ERRCODE_MORE_THAN_ONE_SQL_JSON_ITEM = 67_895_426,
ERRCODE_NO_SQL_JSON_ITEM = 84_672_642,
ERRCODE_NON_NUMERIC_SQL_JSON_ITEM = 101_449_858,
ERRCODE_NON_UNIQUE_KEYS_IN_A_JSON_OBJECT = 118_227_074,
ERRCODE_SINGLETON_SQL_JSON_ITEM_REQUIRED = 135_004_290,
ERRCODE_SQL_JSON_ARRAY_NOT_FOUND = 151_781_506,
ERRCODE_SQL_JSON_MEMBER_NOT_FOUND = 285_999_234,
ERRCODE_SQL_JSON_NUMBER_NOT_FOUND = 302_776_450,
ERRCODE_SQL_JSON_OBJECT_NOT_FOUND = 319_553_666,
ERRCODE_TOO_MANY_JSON_ARRAY_ELEMENTS = 336_330_882,
ERRCODE_TOO_MANY_JSON_OBJECT_MEMBERS = 353_108_098,
ERRCODE_SQL_JSON_SCALAR_REQUIRED = 369_885_314,
ERRCODE_INTEGRITY_CONSTRAINT_VIOLATION = 194,
ERRCODE_RESTRICT_VIOLATION = 16_777_410,
ERRCODE_NOT_NULL_VIOLATION = 33_575_106,
ERRCODE_FOREIGN_KEY_VIOLATION = 50_352_322,
ERRCODE_UNIQUE_VIOLATION = 83_906_754,
ERRCODE_CHECK_VIOLATION = 67_391_682,
ERRCODE_EXCLUSION_VIOLATION = 16_908_482,
ERRCODE_INVALID_CURSOR_STATE = 258,
ERRCODE_INVALID_TRANSACTION_STATE = 322,
ERRCODE_ACTIVE_SQL_TRANSACTION = 16_777_538,
ERRCODE_BRANCH_TRANSACTION_ALREADY_ACTIVE = 33_554_754,
ERRCODE_HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL = 134_218_050,
ERRCODE_INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION = 50_331_970,
ERRCODE_INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION = 67_109_186,
ERRCODE_NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION = 83_886_402,
ERRCODE_READ_ONLY_SQL_TRANSACTION = 100_663_618,
ERRCODE_SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED = 117_440_834,
ERRCODE_NO_ACTIVE_SQL_TRANSACTION = 16_908_610,
ERRCODE_IN_FAILED_SQL_TRANSACTION = 33_685_826,
ERRCODE_IDLE_IN_TRANSACTION_SESSION_TIMEOUT = 50_463_042,
ERRCODE_INVALID_SQL_STATEMENT_NAME = 386,
ERRCODE_TRIGGERED_DATA_CHANGE_VIOLATION = 450,
ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION = 514,
ERRCODE_INVALID_PASSWORD = 16_908_802,
ERRCODE_DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST = 1_154,
ERRCODE_DEPENDENT_OBJECTS_STILL_EXIST = 16_909_442,
ERRCODE_INVALID_TRANSACTION_TERMINATION = 1_282,
ERRCODE_SQL_ROUTINE_EXCEPTION = 1_410,
ERRCODE_S_R_E_FUNCTION_EXECUTED_NO_RETURN_STATEMENT = 83_887_490,
ERRCODE_S_R_E_MODIFYING_SQL_DATA_NOT_PERMITTED = 33_555_842,
ERRCODE_S_R_E_PROHIBITED_SQL_STATEMENT_ATTEMPTED = 50_333_058,
ERRCODE_S_R_E_READING_SQL_DATA_NOT_PERMITTED = 67_110_274,
ERRCODE_INVALID_CURSOR_NAME = 259,
ERRCODE_EXTERNAL_ROUTINE_EXCEPTION = 515,
ERRCODE_E_R_E_CONTAINING_SQL_NOT_PERMITTED = 16_777_731,
ERRCODE_E_R_E_MODIFYING_SQL_DATA_NOT_PERMITTED = 33_554_947,
ERRCODE_E_R_E_PROHIBITED_SQL_STATEMENT_ATTEMPTED = 50_332_163,
ERRCODE_E_R_E_READING_SQL_DATA_NOT_PERMITTED = 67_109_379,
ERRCODE_EXTERNAL_ROUTINE_INVOCATION_EXCEPTION = 579,
ERRCODE_E_R_I_E_INVALID_SQLSTATE_RETURNED = 16_777_795,
ERRCODE_E_R_I_E_NULL_VALUE_NOT_ALLOWED = 67_109_443,
ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED = 16_908_867,
ERRCODE_E_R_I_E_SRF_PROTOCOL_VIOLATED = 33_686_083,
ERRCODE_E_R_I_E_EVENT_TRIGGER_PROTOCOL_VIOLATED = 50_463_299,
ERRCODE_SAVEPOINT_EXCEPTION = 1_155,
ERRCODE_S_E_INVALID_SPECIFICATION = 16_778_371,
ERRCODE_INVALID_CATALOG_NAME = 1_283,
ERRCODE_INVALID_SCHEMA_NAME = 1_411,
ERRCODE_TRANSACTION_ROLLBACK = 4,
ERRCODE_T_R_INTEGRITY_CONSTRAINT_VIOLATION = 33_554_436,
ERRCODE_T_R_SERIALIZATION_FAILURE = 16_777_220,
ERRCODE_T_R_STATEMENT_COMPLETION_UNKNOWN = 50_331_652,
ERRCODE_T_R_DEADLOCK_DETECTED = 16_908_292,
ERRCODE_SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION = 132,
ERRCODE_SYNTAX_ERROR = 16_801_924,
ERRCODE_INSUFFICIENT_PRIVILEGE = 16_797_828,
ERRCODE_CANNOT_COERCE = 101_744_772,
ERRCODE_GROUPING_ERROR = 50_364_548,
ERRCODE_WINDOWING_ERROR = 655_492,
ERRCODE_INVALID_RECURSION = 151_388_292,
ERRCODE_INVALID_FOREIGN_KEY = 819_332,
ERRCODE_INVALID_NAME = 33_579_140,
ERRCODE_NAME_TOO_LONG = 34_103_428,
ERRCODE_RESERVED_NAME = 151_818_372,
ERRCODE_DATATYPE_MISMATCH = 67_141_764,
ERRCODE_INDETERMINATE_DATATYPE = 134_611_076,
ERRCODE_COLLATION_MISMATCH = 17_432_708,
ERRCODE_INDETERMINATE_COLLATION = 34_209_924,
ERRCODE_WRONG_OBJECT_TYPE = 151_027_844,
ERRCODE_GENERATED_ALWAYS = 156_008_580,
ERRCODE_UNDEFINED_COLUMN = 50_360_452,
ERRCODE_UNDEFINED_FUNCTION = 52_461_700,
ERRCODE_UNDEFINED_TABLE = 16_908_420,
ERRCODE_UNDEFINED_PARAMETER = 33_685_636,
ERRCODE_UNDEFINED_OBJECT = 67_137_668,
ERRCODE_DUPLICATE_COLUMN = 16_806_020,
ERRCODE_DUPLICATE_CURSOR = 50_462_852,
ERRCODE_DUPLICATE_DATABASE = 67_240_068,
ERRCODE_DUPLICATE_FUNCTION = 50_884_740,
ERRCODE_DUPLICATE_PSTATEMENT = 84_017_284,
ERRCODE_DUPLICATE_SCHEMA = 100_794_500,
ERRCODE_DUPLICATE_TABLE = 117_571_716,
ERRCODE_DUPLICATE_ALIAS = 33_845_380,
ERRCODE_DUPLICATE_OBJECT = 290_948,
ERRCODE_AMBIGUOUS_COLUMN = 33_583_236,
ERRCODE_AMBIGUOUS_FUNCTION = 84_439_172,
ERRCODE_AMBIGUOUS_PARAMETER = 134_348_932,
ERRCODE_AMBIGUOUS_ALIAS = 151_126_148,
ERRCODE_INVALID_COLUMN_REFERENCE = 393_348,
ERRCODE_INVALID_COLUMN_DEFINITION = 17_064_068,
ERRCODE_INVALID_CURSOR_DEFINITION = 17_170_564,
ERRCODE_INVALID_DATABASE_DEFINITION = 33_947_780,
ERRCODE_INVALID_FUNCTION_DEFINITION = 50_724_996,
ERRCODE_INVALID_PSTATEMENT_DEFINITION = 67_502_212,
ERRCODE_INVALID_SCHEMA_DEFINITION = 84_279_428,
ERRCODE_INVALID_TABLE_DEFINITION = 101_056_644,
ERRCODE_INVALID_OBJECT_DEFINITION = 117_833_860,
ERRCODE_WITH_CHECK_OPTION_VIOLATION = 260,
ERRCODE_INSUFFICIENT_RESOURCES = 197,
ERRCODE_DISK_FULL = 4_293,
ERRCODE_OUT_OF_MEMORY = 8_389,
ERRCODE_TOO_MANY_CONNECTIONS = 12_485,
ERRCODE_CONFIGURATION_LIMIT_EXCEEDED = 16_581,
ERRCODE_PROGRAM_LIMIT_EXCEEDED = 261,
ERRCODE_STATEMENT_TOO_COMPLEX = 16_777_477,
ERRCODE_TOO_MANY_COLUMNS = 17_039_621,
ERRCODE_TOO_MANY_ARGUMENTS = 50_856_197,
ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE = 325,
ERRCODE_OBJECT_IN_USE = 100_663_621,
ERRCODE_CANT_CHANGE_RUNTIME_PARAM = 33_685_829,
ERRCODE_LOCK_NOT_AVAILABLE = 50_463_045,
ERRCODE_UNSAFE_NEW_ENUM_VALUE_USAGE = 67_240_261,
ERRCODE_OPERATOR_INTERVENTION = 453,
ERRCODE_QUERY_CANCELED = 67_371_461,
ERRCODE_ADMIN_SHUTDOWN = 16_908_741,
ERRCODE_CRASH_SHUTDOWN = 33_685_957,
ERRCODE_CANNOT_CONNECT_NOW = 50_463_173,
ERRCODE_DATABASE_DROPPED = 67_240_389,
ERRCODE_SYSTEM_ERROR = 517,
ERRCODE_IO_ERROR = 786_949,
ERRCODE_UNDEFINED_FILE = 16_908_805,
ERRCODE_DUPLICATE_FILE = 33_686_021,
ERRCODE_SNAPSHOT_TOO_OLD = 135,
ERRCODE_CONFIG_FILE_ERROR = 22,
ERRCODE_LOCK_FILE_EXISTS = 16_777_238,
ERRCODE_FDW_ERROR = 2_456,
ERRCODE_FDW_COLUMN_NAME_NOT_FOUND = 83_888_536,
ERRCODE_FDW_DYNAMIC_PARAMETER_VALUE_NEEDED = 33_556_888,
ERRCODE_FDW_FUNCTION_SEQUENCE_ERROR = 264_600,
ERRCODE_FDW_INCONSISTENT_DESCRIPTOR_INFORMATION = 17_303_960,
ERRCODE_FDW_INVALID_ATTRIBUTE_VALUE = 67_635_608,
ERRCODE_FDW_INVALID_COLUMN_NAME = 117_442_968,
ERRCODE_FDW_INVALID_COLUMN_NUMBER = 134_220_184,
ERRCODE_FDW_INVALID_DATA_TYPE = 67_111_320,
ERRCODE_FDW_INVALID_DATA_TYPE_DESCRIPTORS = 100_665_752,
ERRCODE_FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER = 19_138_968,
ERRCODE_FDW_INVALID_HANDLE = 301_992_344,
ERRCODE_FDW_INVALID_OPTION_INDEX = 318_769_560,
ERRCODE_FDW_INVALID_OPTION_NAME = 335_546_776,
ERRCODE_FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH = 2_361_752,
ERRCODE_FDW_INVALID_STRING_FORMAT = 285_215_128,
ERRCODE_FDW_INVALID_USE_OF_NULL_POINTER = 150_997_400,
ERRCODE_FDW_TOO_MANY_HANDLES = 67_373_464,
ERRCODE_FDW_OUT_OF_MEMORY = 16_779_672,
ERRCODE_FDW_NO_SCHEMAS = 536_873_368,
ERRCODE_FDW_OPTION_NAME_NOT_FOUND = 436_210_072,
ERRCODE_FDW_REPLY_HANDLE = 452_987_288,
ERRCODE_FDW_SCHEMA_NOT_FOUND = 553_650_584,
ERRCODE_FDW_TABLE_NOT_FOUND = 570_427_800,
ERRCODE_FDW_UNABLE_TO_CREATE_EXECUTION = 469_764_504,
ERRCODE_FDW_UNABLE_TO_CREATE_REPLY = 486_541_720,
ERRCODE_FDW_UNABLE_TO_ESTABLISH_CONNECTION = 503_318_936,
ERRCODE_PLPGSQL_ERROR = 32,
ERRCODE_RAISE_EXCEPTION = 16_777_248,
ERRCODE_NO_DATA_FOUND = 33_554_464,
ERRCODE_TOO_MANY_ROWS = 50_331_680,
ERRCODE_ASSERT_FAILURE = 67_108_896,
ERRCODE_INTERNAL_ERROR = 2_600,
ERRCODE_DATA_CORRUPTED = 16_779_816,
ERRCODE_INDEX_CORRUPTED = 33_557_032,
}
Expand description
This list of SQL Error Codes is taken directly from Postgres 12’s generated “utils/errcodes.h”
Variants§
ERRCODE_SUCCESSFUL_COMPLETION = 0
Class 00 - Successful Completion
ERRCODE_WARNING = 64
Class 01 - Warning
ERRCODE_WARNING_DYNAMIC_RESULT_SETS_RETURNED = 318_767_168
ERRCODE_WARNING_IMPLICIT_ZERO_BIT_PADDING = 134_217_792
ERRCODE_WARNING_NULL_VALUE_ELIMINATED_IN_SET_FUNCTION = 50_331_712
ERRCODE_WARNING_PRIVILEGE_NOT_GRANTED = 117_440_576
ERRCODE_WARNING_PRIVILEGE_NOT_REVOKED = 100_663_360
ERRCODE_WARNING_STRING_DATA_RIGHT_TRUNCATION = 67_108_928
ERRCODE_WARNING_DEPRECATED_FEATURE = 16_908_352
ERRCODE_NO_DATA = 128
Class 02 - No Data (this is also a warning class per the SQL standard) as isize,
ERRCODE_NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED = 16_777_344
ERRCODE_SQL_STATEMENT_NOT_YET_COMPLETE = 192
Class 03 - SQL Statement Not Yet Complete
ERRCODE_CONNECTION_EXCEPTION = 512
Class 08 - Connection Exception
ERRCODE_CONNECTION_DOES_NOT_EXIST = 50_332_160
ERRCODE_CONNECTION_FAILURE = 100_663_808
ERRCODE_SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION = 16_777_728
ERRCODE_SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION = 67_109_376
ERRCODE_TRANSACTION_RESOLUTION_UNKNOWN = 117_441_024
ERRCODE_PROTOCOL_VIOLATION = 16_908_800
ERRCODE_TRIGGERED_ACTION_EXCEPTION = 576
Class 09 - Triggered Action Exception
ERRCODE_FEATURE_NOT_SUPPORTED = 1_088
Class 0A - Feature Not Supported
ERRCODE_INVALID_TRANSACTION_INITIATION = 1_152
Class 0B - Invalid Transaction Initiation
ERRCODE_LOCATOR_EXCEPTION = 1_408
Class 0F - Locator Exception
ERRCODE_L_E_INVALID_SPECIFICATION = 16_778_624
ERRCODE_INVALID_GRANTOR = 1_792
Class 0L - Invalid Grantor
ERRCODE_INVALID_GRANT_OPERATION = 16_910_080
ERRCODE_INVALID_ROLE_SPECIFICATION = 2_048
Class 0P - Invalid Role Specification
ERRCODE_DIAGNOSTICS_EXCEPTION = 2_688
Class 0Z - Diagnostics Exception
ERRCODE_STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER = 33_557_120
ERRCODE_CASE_NOT_FOUND = 2
Class 20 - Case Not Found
ERRCODE_CARDINALITY_VIOLATION = 66
Class 21 - Cardinality Violation
ERRCODE_DATA_EXCEPTION = 130
Class 22 - Data Exception
ERRCODE_ARRAY_ELEMENT_ERROR = 352_845_954
ERRCODE_CHARACTER_NOT_IN_REPERTOIRE = 17_301_634
ERRCODE_DATETIME_FIELD_OVERFLOW = 134_217_858
ERRCODE_DIVISION_BY_ZERO = 33_816_706
ERRCODE_ERROR_IN_ASSIGNMENT = 83_886_210
ERRCODE_ESCAPE_CHARACTER_CONFLICT = 301_990_018
ERRCODE_INDICATOR_OVERFLOW = 34_078_850
ERRCODE_INTERVAL_FIELD_OVERFLOW = 84_148_354
ERRCODE_INVALID_ARGUMENT_FOR_LOG = 352_583_810
ERRCODE_INVALID_ARGUMENT_FOR_NTILE = 67_371_138
ERRCODE_INVALID_ARGUMENT_FOR_NTH_VALUE = 100_925_570
ERRCODE_INVALID_ARGUMENT_FOR_POWER_FUNCTION = 369_361_026
ERRCODE_INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION = 386_138_242
ERRCODE_INVALID_CHARACTER_VALUE_FOR_CAST = 134_480_002
ERRCODE_INVALID_DATETIME_FORMAT = 117_440_642
ERRCODE_INVALID_ESCAPE_CHARACTER = 151_257_218
ERRCODE_INVALID_ESCAPE_OCTET = 335_544_450
ERRCODE_INVALID_ESCAPE_SEQUENCE = 84_410_498
ERRCODE_NONSTANDARD_USE_OF_ESCAPE_CHARACTER = 100_794_498
ERRCODE_INVALID_INDICATOR_PARAMETER_VALUE = 262_274
ERRCODE_INVALID_PARAMETER_VALUE = 50_856_066
ERRCODE_INVALID_PRECEDING_OR_FOLLOWING_SIZE = 50_593_922
ERRCODE_INVALID_REGULAR_EXPRESSION = 302_252_162
ERRCODE_INVALID_ROW_COUNT_IN_LIMIT_CLAUSE = 654_573_698
ERRCODE_INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE = 671_350_914
ERRCODE_INVALID_TABLESAMPLE_ARGUMENT = 403_177_602
ERRCODE_INVALID_TABLESAMPLE_REPEAT = 386_400_386
ERRCODE_INVALID_TIME_ZONE_DISPLACEMENT_VALUE = 150_995_074
ERRCODE_INVALID_USE_OF_ESCAPE_CHARACTER = 318_767_234
ERRCODE_MOST_SPECIFIC_TYPE_MISMATCH = 385_876_098
ERRCODE_NULL_VALUE_NOT_ALLOWED = 67_108_994
ERRCODE_NULL_VALUE_NO_INDICATOR_PARAMETER = 33_554_562
ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE = 50_331_778
ERRCODE_SEQUENCE_GENERATOR_LIMIT_EXCEEDED = 402_653_314
ERRCODE_STRING_DATA_LENGTH_MISMATCH = 101_187_714
ERRCODE_STRING_DATA_RIGHT_TRUNCATION = 16_777_346
ERRCODE_SUBSTRING_ERROR = 17_039_490
ERRCODE_TRIM_ERROR = 117_964_930
ERRCODE_UNTERMINATED_C_STRING = 67_633_282
ERRCODE_ZERO_LENGTH_CHARACTER_STRING = 369_098_882
ERRCODE_FLOATING_POINT_EXCEPTION = 16_908_418
ERRCODE_INVALID_TEXT_REPRESENTATION = 33_685_634
ERRCODE_INVALID_BINARY_REPRESENTATION = 50_462_850
ERRCODE_BAD_COPY_FILE_FORMAT = 67_240_066
ERRCODE_UNTRANSLATABLE_CHARACTER = 84_017_282
ERRCODE_NOT_AN_XML_DOCUMENT = 469_762_178
ERRCODE_INVALID_XML_DOCUMENT = 486_539_394
ERRCODE_INVALID_XML_CONTENT = 503_316_610
ERRCODE_INVALID_XML_COMMENT = 587_202_690
ERRCODE_INVALID_XML_PROCESSING_INSTRUCTION = 603_979_906
ERRCODE_DUPLICATE_JSON_OBJECT_KEY_VALUE = 786_562
ERRCODE_INVALID_JSON_TEXT = 34_340_994
ERRCODE_INVALID_SQL_JSON_SUBSCRIPT = 51_118_210
ERRCODE_MORE_THAN_ONE_SQL_JSON_ITEM = 67_895_426
ERRCODE_NO_SQL_JSON_ITEM = 84_672_642
ERRCODE_NON_NUMERIC_SQL_JSON_ITEM = 101_449_858
ERRCODE_NON_UNIQUE_KEYS_IN_A_JSON_OBJECT = 118_227_074
ERRCODE_SINGLETON_SQL_JSON_ITEM_REQUIRED = 135_004_290
ERRCODE_SQL_JSON_ARRAY_NOT_FOUND = 151_781_506
ERRCODE_SQL_JSON_MEMBER_NOT_FOUND = 285_999_234
ERRCODE_SQL_JSON_NUMBER_NOT_FOUND = 302_776_450
ERRCODE_SQL_JSON_OBJECT_NOT_FOUND = 319_553_666
ERRCODE_TOO_MANY_JSON_ARRAY_ELEMENTS = 336_330_882
ERRCODE_TOO_MANY_JSON_OBJECT_MEMBERS = 353_108_098
ERRCODE_SQL_JSON_SCALAR_REQUIRED = 369_885_314
ERRCODE_INTEGRITY_CONSTRAINT_VIOLATION = 194
Class 23 - Integrity Constraint Violation
ERRCODE_RESTRICT_VIOLATION = 16_777_410
ERRCODE_NOT_NULL_VIOLATION = 33_575_106
ERRCODE_FOREIGN_KEY_VIOLATION = 50_352_322
ERRCODE_UNIQUE_VIOLATION = 83_906_754
ERRCODE_CHECK_VIOLATION = 67_391_682
ERRCODE_EXCLUSION_VIOLATION = 16_908_482
ERRCODE_INVALID_CURSOR_STATE = 258
Class 24 - Invalid Cursor State
ERRCODE_INVALID_TRANSACTION_STATE = 322
Class 25 - Invalid Transaction State
ERRCODE_ACTIVE_SQL_TRANSACTION = 16_777_538
ERRCODE_BRANCH_TRANSACTION_ALREADY_ACTIVE = 33_554_754
ERRCODE_HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL = 134_218_050
ERRCODE_INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION = 50_331_970
ERRCODE_INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION = 67_109_186
ERRCODE_NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION = 83_886_402
ERRCODE_READ_ONLY_SQL_TRANSACTION = 100_663_618
ERRCODE_SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED = 117_440_834
ERRCODE_NO_ACTIVE_SQL_TRANSACTION = 16_908_610
ERRCODE_IN_FAILED_SQL_TRANSACTION = 33_685_826
ERRCODE_IDLE_IN_TRANSACTION_SESSION_TIMEOUT = 50_463_042
ERRCODE_INVALID_SQL_STATEMENT_NAME = 386
Class 26 - Invalid SQL Statement Name
ERRCODE_TRIGGERED_DATA_CHANGE_VIOLATION = 450
Class 27 - Triggered Data Change Violation
ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION = 514
Class 28 - Invalid Authorization Specification
ERRCODE_INVALID_PASSWORD = 16_908_802
ERRCODE_DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST = 1_154
Class 2B - Dependent Privilege Descriptors Still Exist
ERRCODE_DEPENDENT_OBJECTS_STILL_EXIST = 16_909_442
ERRCODE_INVALID_TRANSACTION_TERMINATION = 1_282
Class 2D - Invalid Transaction Termination
ERRCODE_SQL_ROUTINE_EXCEPTION = 1_410
Class 2F - SQL Routine Exception
ERRCODE_S_R_E_FUNCTION_EXECUTED_NO_RETURN_STATEMENT = 83_887_490
ERRCODE_S_R_E_MODIFYING_SQL_DATA_NOT_PERMITTED = 33_555_842
ERRCODE_S_R_E_PROHIBITED_SQL_STATEMENT_ATTEMPTED = 50_333_058
ERRCODE_S_R_E_READING_SQL_DATA_NOT_PERMITTED = 67_110_274
ERRCODE_INVALID_CURSOR_NAME = 259
Class 34 - Invalid Cursor Name
ERRCODE_EXTERNAL_ROUTINE_EXCEPTION = 515
Class 38 - External Routine Exception
ERRCODE_E_R_E_CONTAINING_SQL_NOT_PERMITTED = 16_777_731
ERRCODE_E_R_E_MODIFYING_SQL_DATA_NOT_PERMITTED = 33_554_947
ERRCODE_E_R_E_PROHIBITED_SQL_STATEMENT_ATTEMPTED = 50_332_163
ERRCODE_E_R_E_READING_SQL_DATA_NOT_PERMITTED = 67_109_379
ERRCODE_EXTERNAL_ROUTINE_INVOCATION_EXCEPTION = 579
Class 39 - External Routine Invocation Exception
ERRCODE_E_R_I_E_INVALID_SQLSTATE_RETURNED = 16_777_795
ERRCODE_E_R_I_E_NULL_VALUE_NOT_ALLOWED = 67_109_443
ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED = 16_908_867
ERRCODE_E_R_I_E_SRF_PROTOCOL_VIOLATED = 33_686_083
ERRCODE_E_R_I_E_EVENT_TRIGGER_PROTOCOL_VIOLATED = 50_463_299
ERRCODE_SAVEPOINT_EXCEPTION = 1_155
Class 3B - Savepoint Exception
ERRCODE_S_E_INVALID_SPECIFICATION = 16_778_371
ERRCODE_INVALID_CATALOG_NAME = 1_283
Class 3D - Invalid Catalog Name
ERRCODE_INVALID_SCHEMA_NAME = 1_411
Class 3F - Invalid Schema Name
ERRCODE_TRANSACTION_ROLLBACK = 4
Class 40 - Transaction Rollback
ERRCODE_T_R_INTEGRITY_CONSTRAINT_VIOLATION = 33_554_436
ERRCODE_T_R_SERIALIZATION_FAILURE = 16_777_220
ERRCODE_T_R_STATEMENT_COMPLETION_UNKNOWN = 50_331_652
ERRCODE_T_R_DEADLOCK_DETECTED = 16_908_292
ERRCODE_SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION = 132
Class 42 - Syntax Error or Access Rule Violation
ERRCODE_SYNTAX_ERROR = 16_801_924
ERRCODE_INSUFFICIENT_PRIVILEGE = 16_797_828
ERRCODE_CANNOT_COERCE = 101_744_772
ERRCODE_GROUPING_ERROR = 50_364_548
ERRCODE_WINDOWING_ERROR = 655_492
ERRCODE_INVALID_RECURSION = 151_388_292
ERRCODE_INVALID_FOREIGN_KEY = 819_332
ERRCODE_INVALID_NAME = 33_579_140
ERRCODE_NAME_TOO_LONG = 34_103_428
ERRCODE_RESERVED_NAME = 151_818_372
ERRCODE_DATATYPE_MISMATCH = 67_141_764
ERRCODE_INDETERMINATE_DATATYPE = 134_611_076
ERRCODE_COLLATION_MISMATCH = 17_432_708
ERRCODE_INDETERMINATE_COLLATION = 34_209_924
ERRCODE_WRONG_OBJECT_TYPE = 151_027_844
ERRCODE_GENERATED_ALWAYS = 156_008_580
ERRCODE_UNDEFINED_COLUMN = 50_360_452
ERRCODE_UNDEFINED_FUNCTION = 52_461_700
ERRCODE_UNDEFINED_TABLE = 16_908_420
ERRCODE_UNDEFINED_PARAMETER = 33_685_636
ERRCODE_UNDEFINED_OBJECT = 67_137_668
ERRCODE_DUPLICATE_COLUMN = 16_806_020
ERRCODE_DUPLICATE_CURSOR = 50_462_852
ERRCODE_DUPLICATE_DATABASE = 67_240_068
ERRCODE_DUPLICATE_FUNCTION = 50_884_740
ERRCODE_DUPLICATE_PSTATEMENT = 84_017_284
ERRCODE_DUPLICATE_SCHEMA = 100_794_500
ERRCODE_DUPLICATE_TABLE = 117_571_716
ERRCODE_DUPLICATE_ALIAS = 33_845_380
ERRCODE_DUPLICATE_OBJECT = 290_948
ERRCODE_AMBIGUOUS_COLUMN = 33_583_236
ERRCODE_AMBIGUOUS_FUNCTION = 84_439_172
ERRCODE_AMBIGUOUS_PARAMETER = 134_348_932
ERRCODE_AMBIGUOUS_ALIAS = 151_126_148
ERRCODE_INVALID_COLUMN_REFERENCE = 393_348
ERRCODE_INVALID_COLUMN_DEFINITION = 17_064_068
ERRCODE_INVALID_CURSOR_DEFINITION = 17_170_564
ERRCODE_INVALID_DATABASE_DEFINITION = 33_947_780
ERRCODE_INVALID_FUNCTION_DEFINITION = 50_724_996
ERRCODE_INVALID_PSTATEMENT_DEFINITION = 67_502_212
ERRCODE_INVALID_SCHEMA_DEFINITION = 84_279_428
ERRCODE_INVALID_TABLE_DEFINITION = 101_056_644
ERRCODE_INVALID_OBJECT_DEFINITION = 117_833_860
ERRCODE_WITH_CHECK_OPTION_VIOLATION = 260
Class 44 - WITH CHECK OPTION Violation
ERRCODE_INSUFFICIENT_RESOURCES = 197
Class 53 - Insufficient Resources
ERRCODE_DISK_FULL = 4_293
ERRCODE_OUT_OF_MEMORY = 8_389
ERRCODE_TOO_MANY_CONNECTIONS = 12_485
ERRCODE_CONFIGURATION_LIMIT_EXCEEDED = 16_581
ERRCODE_PROGRAM_LIMIT_EXCEEDED = 261
Class 54 - Program Limit Exceeded
ERRCODE_STATEMENT_TOO_COMPLEX = 16_777_477
ERRCODE_TOO_MANY_COLUMNS = 17_039_621
ERRCODE_TOO_MANY_ARGUMENTS = 50_856_197
ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE = 325
Class 55 - Object Not In Prerequisite State
ERRCODE_OBJECT_IN_USE = 100_663_621
ERRCODE_CANT_CHANGE_RUNTIME_PARAM = 33_685_829
ERRCODE_LOCK_NOT_AVAILABLE = 50_463_045
ERRCODE_UNSAFE_NEW_ENUM_VALUE_USAGE = 67_240_261
ERRCODE_OPERATOR_INTERVENTION = 453
Class 57 - Operator Intervention
ERRCODE_QUERY_CANCELED = 67_371_461
ERRCODE_ADMIN_SHUTDOWN = 16_908_741
ERRCODE_CRASH_SHUTDOWN = 33_685_957
ERRCODE_CANNOT_CONNECT_NOW = 50_463_173
ERRCODE_DATABASE_DROPPED = 67_240_389
ERRCODE_SYSTEM_ERROR = 517
Class 58 - System Error (errors external to PostgreSQL itself) as isize,
ERRCODE_IO_ERROR = 786_949
ERRCODE_UNDEFINED_FILE = 16_908_805
ERRCODE_DUPLICATE_FILE = 33_686_021
ERRCODE_SNAPSHOT_TOO_OLD = 135
Class 72 - Snapshot Failure
ERRCODE_CONFIG_FILE_ERROR = 22
Class F0 - Configuration File Error
ERRCODE_LOCK_FILE_EXISTS = 16_777_238
ERRCODE_FDW_ERROR = 2_456
Class HV - Foreign Data Wrapper Error (SQL/MED) as isize,
ERRCODE_FDW_COLUMN_NAME_NOT_FOUND = 83_888_536
ERRCODE_FDW_DYNAMIC_PARAMETER_VALUE_NEEDED = 33_556_888
ERRCODE_FDW_FUNCTION_SEQUENCE_ERROR = 264_600
ERRCODE_FDW_INCONSISTENT_DESCRIPTOR_INFORMATION = 17_303_960
ERRCODE_FDW_INVALID_ATTRIBUTE_VALUE = 67_635_608
ERRCODE_FDW_INVALID_COLUMN_NAME = 117_442_968
ERRCODE_FDW_INVALID_COLUMN_NUMBER = 134_220_184
ERRCODE_FDW_INVALID_DATA_TYPE = 67_111_320
ERRCODE_FDW_INVALID_DATA_TYPE_DESCRIPTORS = 100_665_752
ERRCODE_FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER = 19_138_968
ERRCODE_FDW_INVALID_HANDLE = 301_992_344
ERRCODE_FDW_INVALID_OPTION_INDEX = 318_769_560
ERRCODE_FDW_INVALID_OPTION_NAME = 335_546_776
ERRCODE_FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH = 2_361_752
ERRCODE_FDW_INVALID_STRING_FORMAT = 285_215_128
ERRCODE_FDW_INVALID_USE_OF_NULL_POINTER = 150_997_400
ERRCODE_FDW_TOO_MANY_HANDLES = 67_373_464
ERRCODE_FDW_OUT_OF_MEMORY = 16_779_672
ERRCODE_FDW_NO_SCHEMAS = 536_873_368
ERRCODE_FDW_OPTION_NAME_NOT_FOUND = 436_210_072
ERRCODE_FDW_REPLY_HANDLE = 452_987_288
ERRCODE_FDW_SCHEMA_NOT_FOUND = 553_650_584
ERRCODE_FDW_TABLE_NOT_FOUND = 570_427_800
ERRCODE_FDW_UNABLE_TO_CREATE_EXECUTION = 469_764_504
ERRCODE_FDW_UNABLE_TO_CREATE_REPLY = 486_541_720
ERRCODE_FDW_UNABLE_TO_ESTABLISH_CONNECTION = 503_318_936
ERRCODE_PLPGSQL_ERROR = 32
Class P0 - PL/pgSQL Error
ERRCODE_RAISE_EXCEPTION = 16_777_248
ERRCODE_NO_DATA_FOUND = 33_554_464
ERRCODE_TOO_MANY_ROWS = 50_331_680
ERRCODE_ASSERT_FAILURE = 67_108_896
ERRCODE_INTERNAL_ERROR = 2_600
Class XX - Internal Error
ERRCODE_DATA_CORRUPTED = 16_779_816
ERRCODE_INDEX_CORRUPTED = 33_557_032
Trait Implementations§
Source§impl Clone for PgSqlErrorCode
impl Clone for PgSqlErrorCode
Source§fn clone(&self) -> PgSqlErrorCode
fn clone(&self) -> PgSqlErrorCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PgSqlErrorCode
impl Debug for PgSqlErrorCode
Source§impl Display for PgSqlErrorCode
impl Display for PgSqlErrorCode
Source§impl From<i32> for PgSqlErrorCode
impl From<i32> for PgSqlErrorCode
Source§impl From<isize> for PgSqlErrorCode
impl From<isize> for PgSqlErrorCode
Source§impl Hash for PgSqlErrorCode
impl Hash for PgSqlErrorCode
Source§impl Ord for PgSqlErrorCode
impl Ord for PgSqlErrorCode
Source§fn cmp(&self, other: &PgSqlErrorCode) -> Ordering
fn cmp(&self, other: &PgSqlErrorCode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for PgSqlErrorCode
impl PartialEq for PgSqlErrorCode
Source§impl PartialOrd for PgSqlErrorCode
impl PartialOrd for PgSqlErrorCode
impl Copy for PgSqlErrorCode
impl Eq for PgSqlErrorCode
impl StructuralPartialEq for PgSqlErrorCode
Auto Trait Implementations§
impl Freeze for PgSqlErrorCode
impl RefUnwindSafe for PgSqlErrorCode
impl Send for PgSqlErrorCode
impl Sync for PgSqlErrorCode
impl Unpin for PgSqlErrorCode
impl UnwindSafe for PgSqlErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.