Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
errcodes.txt498 linesDownload Raw Back to share
1#2# errcodes.txt3#      PostgreSQL error codes4#5# Copyright (c) 2003-2023, PostgreSQL Global Development Group6#7# This list serves as the basis for generating source files containing error8# codes. It is kept in a common format to make sure all these source files have9# the same contents.10# The files generated from this one are:11#12#   src/include/utils/errcodes.h13#      macros defining errcode constants to be used in the rest of the source14#15#   src/pl/plpgsql/src/plerrcodes.h16#      a list of PL/pgSQL condition names and their SQLSTATE codes17#18#   src/pl/tcl/pltclerrcodes.h19#      the same, for PL/Tcl20#21#   doc/src/sgml/errcodes-table.sgml22#      a SGML table of error codes for inclusion in the documentation23#24# The format of this file is one error code per line, with the following25# whitespace-separated fields:26#27#      sqlstate    E/W/S    errcode_macro_name    spec_name28#29# where sqlstate is a five-character string following the SQLSTATE conventions,30# the second field indicates if the code means an error, a warning or success,31# errcode_macro_name is the C macro name starting with ERRCODE that will be put32# in errcodes.h, and spec_name is a lowercase, underscore-separated name that33# will be used as the PL/pgSQL condition name and will also be included in the34# SGML list. The last field is optional, if not present the PL/pgSQL condition35# and the SGML entry will not be generated.36#37# Empty lines and lines starting with a hash are comments.38#39# There are also special lines in the format of:40#41#      Section: section description42#43# that is, lines starting with the string "Section:". They are used to delimit44# error classes as defined in the SQL spec, and are necessary for SGML output.45#46#47#      SQLSTATE codes for errors.48#49# The SQL99 code set is rather impoverished, especially in the area of50# syntactical and semantic errors.  We have borrowed codes from IBM's DB251# and invented our own codes to develop a useful code set.52#53# When adding a new code, make sure it is placed in the most appropriate54# class (the first two characters of the code value identify the class).55# The listing is organized by class to make this prominent.56#57# Each class should have a generic '000' subclass.  However,58# the generic '000' subclass code should be used for an error only59# when there is not a more-specific subclass code defined.60#61# The SQL spec requires that all the elements of a SQLSTATE code be62# either digits or upper-case ASCII characters.63#64# Classes that begin with 0-4 or A-H are defined by the65# standard. Within such a class, subclass values defined by the66# standard must begin with 0-4 or A-H. To define a new error code,67# ensure that it is either in an "implementation-defined class" (it68# begins with 5-9 or I-Z), or its subclass falls outside the range of69# error codes that could be present in future versions of the70# standard (i.e. the subclass value begins with 5-9 or I-Z).71#72# The convention is that new error codes defined by PostgreSQL in a73# class defined by the standard have a subclass value that begins74# with 'P'. In addition, error codes defined by PostgreSQL clients75# (such as ecpg) have a class value that begins with 'Y'.76 77Section: Class 00 - Successful Completion78 7900000    S    ERRCODE_SUCCESSFUL_COMPLETION                                  successful_completion80 81Section: Class 01 - Warning82 83# do not use this class for failure conditions8401000    W    ERRCODE_WARNING                                                warning850100C    W    ERRCODE_WARNING_DYNAMIC_RESULT_SETS_RETURNED                   dynamic_result_sets_returned8601008    W    ERRCODE_WARNING_IMPLICIT_ZERO_BIT_PADDING                      implicit_zero_bit_padding8701003    W    ERRCODE_WARNING_NULL_VALUE_ELIMINATED_IN_SET_FUNCTION          null_value_eliminated_in_set_function8801007    W    ERRCODE_WARNING_PRIVILEGE_NOT_GRANTED                          privilege_not_granted8901006    W    ERRCODE_WARNING_PRIVILEGE_NOT_REVOKED                          privilege_not_revoked9001004    W    ERRCODE_WARNING_STRING_DATA_RIGHT_TRUNCATION                   string_data_right_truncation9101P01    W    ERRCODE_WARNING_DEPRECATED_FEATURE                             deprecated_feature92 93Section: Class 02 - No Data (this is also a warning class per the SQL standard)94 95# do not use this class for failure conditions9602000    W    ERRCODE_NO_DATA                                                no_data9702001    W    ERRCODE_NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED             no_additional_dynamic_result_sets_returned98 99Section: Class 03 - SQL Statement Not Yet Complete100 10103000    E    ERRCODE_SQL_STATEMENT_NOT_YET_COMPLETE                         sql_statement_not_yet_complete102 103Section: Class 08 - Connection Exception104 10508000    E    ERRCODE_CONNECTION_EXCEPTION                                   connection_exception10608003    E    ERRCODE_CONNECTION_DOES_NOT_EXIST                              connection_does_not_exist10708006    E    ERRCODE_CONNECTION_FAILURE                                     connection_failure10808001    E    ERRCODE_SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION            sqlclient_unable_to_establish_sqlconnection10908004    E    ERRCODE_SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION      sqlserver_rejected_establishment_of_sqlconnection11008007    E    ERRCODE_TRANSACTION_RESOLUTION_UNKNOWN                         transaction_resolution_unknown11108P01    E    ERRCODE_PROTOCOL_VIOLATION                                     protocol_violation112 113Section: Class 09 - Triggered Action Exception114 11509000    E    ERRCODE_TRIGGERED_ACTION_EXCEPTION                             triggered_action_exception116 117Section: Class 0A - Feature Not Supported118 1190A000    E    ERRCODE_FEATURE_NOT_SUPPORTED                                  feature_not_supported120 121Section: Class 0B - Invalid Transaction Initiation122 1230B000    E    ERRCODE_INVALID_TRANSACTION_INITIATION                         invalid_transaction_initiation124 125Section: Class 0F - Locator Exception126 1270F000    E    ERRCODE_LOCATOR_EXCEPTION                                      locator_exception1280F001    E    ERRCODE_L_E_INVALID_SPECIFICATION                              invalid_locator_specification129 130Section: Class 0L - Invalid Grantor131 1320L000    E    ERRCODE_INVALID_GRANTOR                                        invalid_grantor1330LP01    E    ERRCODE_INVALID_GRANT_OPERATION                                invalid_grant_operation134 135Section: Class 0P - Invalid Role Specification136 1370P000    E    ERRCODE_INVALID_ROLE_SPECIFICATION                             invalid_role_specification138 139Section: Class 0Z - Diagnostics Exception140 1410Z000    E    ERRCODE_DIAGNOSTICS_EXCEPTION                                  diagnostics_exception1420Z002    E    ERRCODE_STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER    stacked_diagnostics_accessed_without_active_handler143 144Section: Class 20 - Case Not Found145 14620000    E    ERRCODE_CASE_NOT_FOUND                                         case_not_found147 148Section: Class 21 - Cardinality Violation149 150# this means something returned the wrong number of rows15121000    E    ERRCODE_CARDINALITY_VIOLATION                                  cardinality_violation152 153Section: Class 22 - Data Exception154 15522000    E    ERRCODE_DATA_EXCEPTION                                         data_exception1562202E    E    ERRCODE_ARRAY_ELEMENT_ERROR157# SQL99's actual definition of "array element error" is subscript error1582202E    E    ERRCODE_ARRAY_SUBSCRIPT_ERROR                                  array_subscript_error15922021    E    ERRCODE_CHARACTER_NOT_IN_REPERTOIRE                            character_not_in_repertoire16022008    E    ERRCODE_DATETIME_FIELD_OVERFLOW                                datetime_field_overflow16122008    E    ERRCODE_DATETIME_VALUE_OUT_OF_RANGE16222012    E    ERRCODE_DIVISION_BY_ZERO                                       division_by_zero16322005    E    ERRCODE_ERROR_IN_ASSIGNMENT                                    error_in_assignment1642200B    E    ERRCODE_ESCAPE_CHARACTER_CONFLICT                              escape_character_conflict16522022    E    ERRCODE_INDICATOR_OVERFLOW                                     indicator_overflow16622015    E    ERRCODE_INTERVAL_FIELD_OVERFLOW                                interval_field_overflow1672201E    E    ERRCODE_INVALID_ARGUMENT_FOR_LOG                               invalid_argument_for_logarithm16822014    E    ERRCODE_INVALID_ARGUMENT_FOR_NTILE                             invalid_argument_for_ntile_function16922016    E    ERRCODE_INVALID_ARGUMENT_FOR_NTH_VALUE                         invalid_argument_for_nth_value_function1702201F    E    ERRCODE_INVALID_ARGUMENT_FOR_POWER_FUNCTION                    invalid_argument_for_power_function1712201G    E    ERRCODE_INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION             invalid_argument_for_width_bucket_function17222018    E    ERRCODE_INVALID_CHARACTER_VALUE_FOR_CAST                       invalid_character_value_for_cast17322007    E    ERRCODE_INVALID_DATETIME_FORMAT                                invalid_datetime_format17422019    E    ERRCODE_INVALID_ESCAPE_CHARACTER                               invalid_escape_character1752200D    E    ERRCODE_INVALID_ESCAPE_OCTET                                   invalid_escape_octet17622025    E    ERRCODE_INVALID_ESCAPE_SEQUENCE                                invalid_escape_sequence17722P06    E    ERRCODE_NONSTANDARD_USE_OF_ESCAPE_CHARACTER                    nonstandard_use_of_escape_character17822010    E    ERRCODE_INVALID_INDICATOR_PARAMETER_VALUE                      invalid_indicator_parameter_value17922023    E    ERRCODE_INVALID_PARAMETER_VALUE                                invalid_parameter_value18022013    E    ERRCODE_INVALID_PRECEDING_OR_FOLLOWING_SIZE                    invalid_preceding_or_following_size1812201B    E    ERRCODE_INVALID_REGULAR_EXPRESSION                             invalid_regular_expression1822201W    E    ERRCODE_INVALID_ROW_COUNT_IN_LIMIT_CLAUSE                      invalid_row_count_in_limit_clause1832201X    E    ERRCODE_INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE              invalid_row_count_in_result_offset_clause1842202H    E    ERRCODE_INVALID_TABLESAMPLE_ARGUMENT                           invalid_tablesample_argument1852202G    E    ERRCODE_INVALID_TABLESAMPLE_REPEAT                             invalid_tablesample_repeat18622009    E    ERRCODE_INVALID_TIME_ZONE_DISPLACEMENT_VALUE                   invalid_time_zone_displacement_value1872200C    E    ERRCODE_INVALID_USE_OF_ESCAPE_CHARACTER                        invalid_use_of_escape_character1882200G    E    ERRCODE_MOST_SPECIFIC_TYPE_MISMATCH                            most_specific_type_mismatch18922004    E    ERRCODE_NULL_VALUE_NOT_ALLOWED                                 null_value_not_allowed19022002    E    ERRCODE_NULL_VALUE_NO_INDICATOR_PARAMETER                      null_value_no_indicator_parameter19122003    E    ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE                             numeric_value_out_of_range1922200H    E    ERRCODE_SEQUENCE_GENERATOR_LIMIT_EXCEEDED                      sequence_generator_limit_exceeded19322026    E    ERRCODE_STRING_DATA_LENGTH_MISMATCH                            string_data_length_mismatch19422001    E    ERRCODE_STRING_DATA_RIGHT_TRUNCATION                           string_data_right_truncation19522011    E    ERRCODE_SUBSTRING_ERROR                                        substring_error19622027    E    ERRCODE_TRIM_ERROR                                             trim_error19722024    E    ERRCODE_UNTERMINATED_C_STRING                                  unterminated_c_string1982200F    E    ERRCODE_ZERO_LENGTH_CHARACTER_STRING                           zero_length_character_string19922P01    E    ERRCODE_FLOATING_POINT_EXCEPTION                               floating_point_exception20022P02    E    ERRCODE_INVALID_TEXT_REPRESENTATION                            invalid_text_representation20122P03    E    ERRCODE_INVALID_BINARY_REPRESENTATION                          invalid_binary_representation20222P04    E    ERRCODE_BAD_COPY_FILE_FORMAT                                   bad_copy_file_format20322P05    E    ERRCODE_UNTRANSLATABLE_CHARACTER                               untranslatable_character2042200L    E    ERRCODE_NOT_AN_XML_DOCUMENT                                    not_an_xml_document2052200M    E    ERRCODE_INVALID_XML_DOCUMENT                                   invalid_xml_document2062200N    E    ERRCODE_INVALID_XML_CONTENT                                    invalid_xml_content2072200S    E    ERRCODE_INVALID_XML_COMMENT                                    invalid_xml_comment2082200T    E    ERRCODE_INVALID_XML_PROCESSING_INSTRUCTION                     invalid_xml_processing_instruction20922030    E    ERRCODE_DUPLICATE_JSON_OBJECT_KEY_VALUE                        duplicate_json_object_key_value21022031    E    ERRCODE_INVALID_ARGUMENT_FOR_SQL_JSON_DATETIME_FUNCTION        invalid_argument_for_sql_json_datetime_function21122032    E    ERRCODE_INVALID_JSON_TEXT                                      invalid_json_text21222033    E    ERRCODE_INVALID_SQL_JSON_SUBSCRIPT                             invalid_sql_json_subscript21322034    E    ERRCODE_MORE_THAN_ONE_SQL_JSON_ITEM                            more_than_one_sql_json_item21422035    E    ERRCODE_NO_SQL_JSON_ITEM                                       no_sql_json_item21522036    E    ERRCODE_NON_NUMERIC_SQL_JSON_ITEM                              non_numeric_sql_json_item21622037    E    ERRCODE_NON_UNIQUE_KEYS_IN_A_JSON_OBJECT                       non_unique_keys_in_a_json_object21722038    E    ERRCODE_SINGLETON_SQL_JSON_ITEM_REQUIRED                       singleton_sql_json_item_required21822039    E    ERRCODE_SQL_JSON_ARRAY_NOT_FOUND                               sql_json_array_not_found2192203A    E    ERRCODE_SQL_JSON_MEMBER_NOT_FOUND                              sql_json_member_not_found2202203B    E    ERRCODE_SQL_JSON_NUMBER_NOT_FOUND                              sql_json_number_not_found2212203C    E    ERRCODE_SQL_JSON_OBJECT_NOT_FOUND                              sql_json_object_not_found2222203D    E    ERRCODE_TOO_MANY_JSON_ARRAY_ELEMENTS                           too_many_json_array_elements2232203E    E    ERRCODE_TOO_MANY_JSON_OBJECT_MEMBERS                           too_many_json_object_members2242203F    E    ERRCODE_SQL_JSON_SCALAR_REQUIRED                               sql_json_scalar_required2252203G    E    ERRCODE_SQL_JSON_ITEM_CANNOT_BE_CAST_TO_TARGET_TYPE            sql_json_item_cannot_be_cast_to_target_type226 227Section: Class 23 - Integrity Constraint Violation228 22923000    E    ERRCODE_INTEGRITY_CONSTRAINT_VIOLATION                         integrity_constraint_violation23023001    E    ERRCODE_RESTRICT_VIOLATION                                     restrict_violation23123502    E    ERRCODE_NOT_NULL_VIOLATION                                     not_null_violation23223503    E    ERRCODE_FOREIGN_KEY_VIOLATION                                  foreign_key_violation23323505    E    ERRCODE_UNIQUE_VIOLATION                                       unique_violation23423514    E    ERRCODE_CHECK_VIOLATION                                        check_violation23523P01    E    ERRCODE_EXCLUSION_VIOLATION                                    exclusion_violation236 237Section: Class 24 - Invalid Cursor State238 23924000    E    ERRCODE_INVALID_CURSOR_STATE                                   invalid_cursor_state240 241Section: Class 25 - Invalid Transaction State242 24325000    E    ERRCODE_INVALID_TRANSACTION_STATE                              invalid_transaction_state24425001    E    ERRCODE_ACTIVE_SQL_TRANSACTION                                 active_sql_transaction24525002    E    ERRCODE_BRANCH_TRANSACTION_ALREADY_ACTIVE                      branch_transaction_already_active24625008    E    ERRCODE_HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL              held_cursor_requires_same_isolation_level24725003    E    ERRCODE_INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION       inappropriate_access_mode_for_branch_transaction24825004    E    ERRCODE_INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION   inappropriate_isolation_level_for_branch_transaction24925005    E    ERRCODE_NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION       no_active_sql_transaction_for_branch_transaction25025006    E    ERRCODE_READ_ONLY_SQL_TRANSACTION                              read_only_sql_transaction25125007    E    ERRCODE_SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED         schema_and_data_statement_mixing_not_supported25225P01    E    ERRCODE_NO_ACTIVE_SQL_TRANSACTION                              no_active_sql_transaction25325P02    E    ERRCODE_IN_FAILED_SQL_TRANSACTION                              in_failed_sql_transaction25425P03    E    ERRCODE_IDLE_IN_TRANSACTION_SESSION_TIMEOUT                    idle_in_transaction_session_timeout255 256Section: Class 26 - Invalid SQL Statement Name257 258# (we take this to mean prepared statements25926000    E    ERRCODE_INVALID_SQL_STATEMENT_NAME                             invalid_sql_statement_name260 261Section: Class 27 - Triggered Data Change Violation262 26327000    E    ERRCODE_TRIGGERED_DATA_CHANGE_VIOLATION                        triggered_data_change_violation264 265Section: Class 28 - Invalid Authorization Specification266 26728000    E    ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION                    invalid_authorization_specification26828P01    E    ERRCODE_INVALID_PASSWORD                                       invalid_password269 270Section: Class 2B - Dependent Privilege Descriptors Still Exist271 2722B000    E    ERRCODE_DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST            dependent_privilege_descriptors_still_exist2732BP01    E    ERRCODE_DEPENDENT_OBJECTS_STILL_EXIST                          dependent_objects_still_exist274 275Section: Class 2D - Invalid Transaction Termination276 2772D000    E    ERRCODE_INVALID_TRANSACTION_TERMINATION                        invalid_transaction_termination278 279Section: Class 2F - SQL Routine Exception280 2812F000    E    ERRCODE_SQL_ROUTINE_EXCEPTION                                  sql_routine_exception2822F005    E    ERRCODE_S_R_E_FUNCTION_EXECUTED_NO_RETURN_STATEMENT            function_executed_no_return_statement2832F002    E    ERRCODE_S_R_E_MODIFYING_SQL_DATA_NOT_PERMITTED                 modifying_sql_data_not_permitted2842F003    E    ERRCODE_S_R_E_PROHIBITED_SQL_STATEMENT_ATTEMPTED               prohibited_sql_statement_attempted2852F004    E    ERRCODE_S_R_E_READING_SQL_DATA_NOT_PERMITTED                   reading_sql_data_not_permitted286 287Section: Class 34 - Invalid Cursor Name288 28934000    E    ERRCODE_INVALID_CURSOR_NAME                                    invalid_cursor_name290 291Section: Class 38 - External Routine Exception292 29338000    E    ERRCODE_EXTERNAL_ROUTINE_EXCEPTION                             external_routine_exception29438001    E    ERRCODE_E_R_E_CONTAINING_SQL_NOT_PERMITTED                     containing_sql_not_permitted29538002    E    ERRCODE_E_R_E_MODIFYING_SQL_DATA_NOT_PERMITTED                 modifying_sql_data_not_permitted29638003    E    ERRCODE_E_R_E_PROHIBITED_SQL_STATEMENT_ATTEMPTED               prohibited_sql_statement_attempted29738004    E    ERRCODE_E_R_E_READING_SQL_DATA_NOT_PERMITTED                   reading_sql_data_not_permitted298 299Section: Class 39 - External Routine Invocation Exception300 30139000    E    ERRCODE_EXTERNAL_ROUTINE_INVOCATION_EXCEPTION                  external_routine_invocation_exception30239001    E    ERRCODE_E_R_I_E_INVALID_SQLSTATE_RETURNED                      invalid_sqlstate_returned30339004    E    ERRCODE_E_R_I_E_NULL_VALUE_NOT_ALLOWED                         null_value_not_allowed30439P01    E    ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED                      trigger_protocol_violated30539P02    E    ERRCODE_E_R_I_E_SRF_PROTOCOL_VIOLATED                          srf_protocol_violated30639P03    E    ERRCODE_E_R_I_E_EVENT_TRIGGER_PROTOCOL_VIOLATED                event_trigger_protocol_violated307 308Section: Class 3B - Savepoint Exception309 3103B000    E    ERRCODE_SAVEPOINT_EXCEPTION                                    savepoint_exception3113B001    E    ERRCODE_S_E_INVALID_SPECIFICATION                              invalid_savepoint_specification312 313Section: Class 3D - Invalid Catalog Name314 3153D000    E    ERRCODE_INVALID_CATALOG_NAME                                   invalid_catalog_name316 317Section: Class 3F - Invalid Schema Name318 3193F000    E    ERRCODE_INVALID_SCHEMA_NAME                                    invalid_schema_name320 321Section: Class 40 - Transaction Rollback322 32340000    E    ERRCODE_TRANSACTION_ROLLBACK                                   transaction_rollback32440002    E    ERRCODE_T_R_INTEGRITY_CONSTRAINT_VIOLATION                     transaction_integrity_constraint_violation32540001    E    ERRCODE_T_R_SERIALIZATION_FAILURE                              serialization_failure32640003    E    ERRCODE_T_R_STATEMENT_COMPLETION_UNKNOWN                       statement_completion_unknown32740P01    E    ERRCODE_T_R_DEADLOCK_DETECTED                                  deadlock_detected328 329Section: Class 42 - Syntax Error or Access Rule Violation330 33142000    E    ERRCODE_SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION                  syntax_error_or_access_rule_violation332# never use the above; use one of these two if no specific code exists:33342601    E    ERRCODE_SYNTAX_ERROR                                           syntax_error33442501    E    ERRCODE_INSUFFICIENT_PRIVILEGE                                 insufficient_privilege33542846    E    ERRCODE_CANNOT_COERCE                                          cannot_coerce33642803    E    ERRCODE_GROUPING_ERROR                                         grouping_error33742P20    E    ERRCODE_WINDOWING_ERROR                                        windowing_error33842P19    E    ERRCODE_INVALID_RECURSION                                      invalid_recursion33942830    E    ERRCODE_INVALID_FOREIGN_KEY                                    invalid_foreign_key34042602    E    ERRCODE_INVALID_NAME                                           invalid_name34142622    E    ERRCODE_NAME_TOO_LONG                                          name_too_long34242939    E    ERRCODE_RESERVED_NAME                                          reserved_name34342804    E    ERRCODE_DATATYPE_MISMATCH                                      datatype_mismatch34442P18    E    ERRCODE_INDETERMINATE_DATATYPE                                 indeterminate_datatype34542P21    E    ERRCODE_COLLATION_MISMATCH                                     collation_mismatch34642P22    E    ERRCODE_INDETERMINATE_COLLATION                                indeterminate_collation34742809    E    ERRCODE_WRONG_OBJECT_TYPE                                      wrong_object_type348428C9    E    ERRCODE_GENERATED_ALWAYS                                       generated_always349 350# Note: for ERRCODE purposes, we divide namable objects into these categories:351# databases, schemas, prepared statements, cursors, tables, columns,352# functions (including operators), and all else (lumped as "objects").353# (The first four categories are mandated by the existence of separate354# SQLSTATE classes for them in the spec; in this file, however, we group355# the ERRCODE names with all the rest under class 42.)  Parameters are356# sort-of-named objects and get their own ERRCODE.357#358# The same breakdown is used for "duplicate" and "ambiguous" complaints,359# as well as complaints associated with incorrect declarations.360 36142703    E    ERRCODE_UNDEFINED_COLUMN                                       undefined_column36234000    E    ERRCODE_UNDEFINED_CURSOR3633D000    E    ERRCODE_UNDEFINED_DATABASE36442883    E    ERRCODE_UNDEFINED_FUNCTION                                     undefined_function36526000    E    ERRCODE_UNDEFINED_PSTATEMENT3663F000    E    ERRCODE_UNDEFINED_SCHEMA36742P01    E    ERRCODE_UNDEFINED_TABLE                                        undefined_table36842P02    E    ERRCODE_UNDEFINED_PARAMETER                                    undefined_parameter36942704    E    ERRCODE_UNDEFINED_OBJECT                                       undefined_object37042701    E    ERRCODE_DUPLICATE_COLUMN                                       duplicate_column37142P03    E    ERRCODE_DUPLICATE_CURSOR                                       duplicate_cursor37242P04    E    ERRCODE_DUPLICATE_DATABASE                                     duplicate_database37342723    E    ERRCODE_DUPLICATE_FUNCTION                                     duplicate_function37442P05    E    ERRCODE_DUPLICATE_PSTATEMENT                                   duplicate_prepared_statement37542P06    E    ERRCODE_DUPLICATE_SCHEMA                                       duplicate_schema37642P07    E    ERRCODE_DUPLICATE_TABLE                                        duplicate_table37742712    E    ERRCODE_DUPLICATE_ALIAS                                        duplicate_alias37842710    E    ERRCODE_DUPLICATE_OBJECT                                       duplicate_object37942702    E    ERRCODE_AMBIGUOUS_COLUMN                                       ambiguous_column38042725    E    ERRCODE_AMBIGUOUS_FUNCTION                                     ambiguous_function38142P08    E    ERRCODE_AMBIGUOUS_PARAMETER                                    ambiguous_parameter38242P09    E    ERRCODE_AMBIGUOUS_ALIAS                                        ambiguous_alias38342P10    E    ERRCODE_INVALID_COLUMN_REFERENCE                               invalid_column_reference38442611    E    ERRCODE_INVALID_COLUMN_DEFINITION                              invalid_column_definition38542P11    E    ERRCODE_INVALID_CURSOR_DEFINITION                              invalid_cursor_definition38642P12    E    ERRCODE_INVALID_DATABASE_DEFINITION                            invalid_database_definition38742P13    E    ERRCODE_INVALID_FUNCTION_DEFINITION                            invalid_function_definition38842P14    E    ERRCODE_INVALID_PSTATEMENT_DEFINITION                          invalid_prepared_statement_definition38942P15    E    ERRCODE_INVALID_SCHEMA_DEFINITION                              invalid_schema_definition39042P16    E    ERRCODE_INVALID_TABLE_DEFINITION                               invalid_table_definition39142P17    E    ERRCODE_INVALID_OBJECT_DEFINITION                              invalid_object_definition392 393Section: Class 44 - WITH CHECK OPTION Violation394 39544000    E    ERRCODE_WITH_CHECK_OPTION_VIOLATION                            with_check_option_violation396 397Section: Class 53 - Insufficient Resources398 399# (PostgreSQL-specific error class)40053000    E    ERRCODE_INSUFFICIENT_RESOURCES                                 insufficient_resources40153100    E    ERRCODE_DISK_FULL                                              disk_full40253200    E    ERRCODE_OUT_OF_MEMORY                                          out_of_memory40353300    E    ERRCODE_TOO_MANY_CONNECTIONS                                   too_many_connections40453400    E    ERRCODE_CONFIGURATION_LIMIT_EXCEEDED                           configuration_limit_exceeded405 406Section: Class 54 - Program Limit Exceeded407 408# this is for wired-in limits, not resource exhaustion problems (class borrowed from DB2)40954000    E    ERRCODE_PROGRAM_LIMIT_EXCEEDED                                 program_limit_exceeded41054001    E    ERRCODE_STATEMENT_TOO_COMPLEX                                  statement_too_complex41154011    E    ERRCODE_TOO_MANY_COLUMNS                                       too_many_columns41254023    E    ERRCODE_TOO_MANY_ARGUMENTS                                     too_many_arguments413 414Section: Class 55 - Object Not In Prerequisite State415 416# (class borrowed from DB2)41755000    E    ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE                       object_not_in_prerequisite_state41855006    E    ERRCODE_OBJECT_IN_USE                                          object_in_use41955P02    E    ERRCODE_CANT_CHANGE_RUNTIME_PARAM                              cant_change_runtime_param42055P03    E    ERRCODE_LOCK_NOT_AVAILABLE                                     lock_not_available42155P04    E    ERRCODE_UNSAFE_NEW_ENUM_VALUE_USAGE                            unsafe_new_enum_value_usage422 423Section: Class 57 - Operator Intervention424 425# (class borrowed from DB2)42657000    E    ERRCODE_OPERATOR_INTERVENTION                                  operator_intervention42757014    E    ERRCODE_QUERY_CANCELED                                         query_canceled42857P01    E    ERRCODE_ADMIN_SHUTDOWN                                         admin_shutdown42957P02    E    ERRCODE_CRASH_SHUTDOWN                                         crash_shutdown43057P03    E    ERRCODE_CANNOT_CONNECT_NOW                                     cannot_connect_now43157P04    E    ERRCODE_DATABASE_DROPPED                                       database_dropped43257P05    E    ERRCODE_IDLE_SESSION_TIMEOUT                                   idle_session_timeout433 434Section: Class 58 - System Error (errors external to PostgreSQL itself)435 436# (class borrowed from DB2)43758000    E    ERRCODE_SYSTEM_ERROR                                           system_error43858030    E    ERRCODE_IO_ERROR                                               io_error43958P01    E    ERRCODE_UNDEFINED_FILE                                         undefined_file44058P02    E    ERRCODE_DUPLICATE_FILE                                         duplicate_file441 442Section: Class 72 - Snapshot Failure443# (class borrowed from Oracle)44472000    E    ERRCODE_SNAPSHOT_TOO_OLD                                       snapshot_too_old445 446Section: Class F0 - Configuration File Error447 448# (PostgreSQL-specific error class)449F0000    E    ERRCODE_CONFIG_FILE_ERROR                                      config_file_error450F0001    E    ERRCODE_LOCK_FILE_EXISTS                                       lock_file_exists451 452Section: Class HV - Foreign Data Wrapper Error (SQL/MED)453 454# (SQL/MED-specific error class)455HV000    E    ERRCODE_FDW_ERROR                                              fdw_error456HV005    E    ERRCODE_FDW_COLUMN_NAME_NOT_FOUND                              fdw_column_name_not_found457HV002    E    ERRCODE_FDW_DYNAMIC_PARAMETER_VALUE_NEEDED                     fdw_dynamic_parameter_value_needed458HV010    E    ERRCODE_FDW_FUNCTION_SEQUENCE_ERROR                            fdw_function_sequence_error459HV021    E    ERRCODE_FDW_INCONSISTENT_DESCRIPTOR_INFORMATION                fdw_inconsistent_descriptor_information460HV024    E    ERRCODE_FDW_INVALID_ATTRIBUTE_VALUE                            fdw_invalid_attribute_value461HV007    E    ERRCODE_FDW_INVALID_COLUMN_NAME                                fdw_invalid_column_name462HV008    E    ERRCODE_FDW_INVALID_COLUMN_NUMBER                              fdw_invalid_column_number463HV004    E    ERRCODE_FDW_INVALID_DATA_TYPE                                  fdw_invalid_data_type464HV006    E    ERRCODE_FDW_INVALID_DATA_TYPE_DESCRIPTORS                      fdw_invalid_data_type_descriptors465HV091    E    ERRCODE_FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER                fdw_invalid_descriptor_field_identifier466HV00B    E    ERRCODE_FDW_INVALID_HANDLE                                     fdw_invalid_handle467HV00C    E    ERRCODE_FDW_INVALID_OPTION_INDEX                               fdw_invalid_option_index468HV00D    E    ERRCODE_FDW_INVALID_OPTION_NAME                                fdw_invalid_option_name469HV090    E    ERRCODE_FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH             fdw_invalid_string_length_or_buffer_length470HV00A    E    ERRCODE_FDW_INVALID_STRING_FORMAT                              fdw_invalid_string_format471HV009    E    ERRCODE_FDW_INVALID_USE_OF_NULL_POINTER                        fdw_invalid_use_of_null_pointer472HV014    E    ERRCODE_FDW_TOO_MANY_HANDLES                                   fdw_too_many_handles473HV001    E    ERRCODE_FDW_OUT_OF_MEMORY                                      fdw_out_of_memory474HV00P    E    ERRCODE_FDW_NO_SCHEMAS                                         fdw_no_schemas475HV00J    E    ERRCODE_FDW_OPTION_NAME_NOT_FOUND                              fdw_option_name_not_found476HV00K    E    ERRCODE_FDW_REPLY_HANDLE                                       fdw_reply_handle477HV00Q    E    ERRCODE_FDW_SCHEMA_NOT_FOUND                                   fdw_schema_not_found478HV00R    E    ERRCODE_FDW_TABLE_NOT_FOUND                                    fdw_table_not_found479HV00L    E    ERRCODE_FDW_UNABLE_TO_CREATE_EXECUTION                         fdw_unable_to_create_execution480HV00M    E    ERRCODE_FDW_UNABLE_TO_CREATE_REPLY                             fdw_unable_to_create_reply481HV00N    E    ERRCODE_FDW_UNABLE_TO_ESTABLISH_CONNECTION                     fdw_unable_to_establish_connection482 483Section: Class P0 - PL/pgSQL Error484 485# (PostgreSQL-specific error class)486P0000    E    ERRCODE_PLPGSQL_ERROR                                          plpgsql_error487P0001    E    ERRCODE_RAISE_EXCEPTION                                        raise_exception488P0002    E    ERRCODE_NO_DATA_FOUND                                          no_data_found489P0003    E    ERRCODE_TOO_MANY_ROWS                                          too_many_rows490P0004    E    ERRCODE_ASSERT_FAILURE                                         assert_failure491 492Section: Class XX - Internal Error493 494# this is for "can't-happen" conditions and software bugs (PostgreSQL-specific error class)495XX000    E    ERRCODE_INTERNAL_ERROR                                         internal_error496XX001    E    ERRCODE_DATA_CORRUPTED                                         data_corrupted497XX002    E    ERRCODE_INDEX_CORRUPTED                                        index_corrupted498 
codekingpro/portable-devtools · Team Ai