KingbaseES错误代码概述
=========================

遵循 SQL 标准对"SQLSTATE"代码的习惯，KingbaseES服务器发出的所有信息都将被赋予五位字符的错误代码。通常，想要知道发生了什么错误状况，应当查阅错误代码， 而不是查看文本形式的错误消息。在KingbaseES的版本之间，错误代码不会轻易改变，也不会随着错误消息的本地化而改变。请注意部分（但不是全部）KingbaseES生成的错误代码是由 SQL 标准定义的；部分标准没有定义的额外错误代码是由KingbaseES定义或者从其它数据库借用而来。

根据标准，错误代码的前两个字符表示错误类别，而后三个字符表示在该类别内的一种特定情况。因此，那些不能识别特定错误代码的应用仍然可以从错误类别中推断要做什么。

表1-1 中列出了KingbaseES定义的所有错误代码（其中部分代码目前实际上并未使用，但在 SQL 标准中有定义）。错误类别也在其中列出。每个错误类别都有一个“标准”错误代码，其后三个字符是 000 。这个代码只用于那些属于该类别但是没有被赋予更特定代码的错误情况。

“情况名称”列中显示的符号是在PL/SQL中使用的情况名称。情况名称可以被写成大写或小写形式（注意PL/SQL不识别警告（与错误不同）情况名称，它们是类别 00、01 和 02）。

对于某些类型的错误，服务器会报告与错误相关的数据库对象（一个表、表列、数据类型或约束）的名称。例如，导致一个unique_violation 错误的唯一约束的名称。这些名字被包含在错误报告消息的独立域中，这样应用就不必从可能是本地化可读的消息文本中抽取它们到KingbaseES 位置，对于这个特性的完全覆盖只在 SQLSTATE 类别 23（完整性约束未被）的错误中存在，但是很可能会在未来进行扩展。

.. note:: 

    错误等级：S为成功，W为Warning警告，E为ERROR错误。

.. table:: Oracle模式错误码
    :widths: 3 10 2 10 10
    :class: longtable

    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 错误码 |                     错误码描述  | 错误等级 |                                                   错误内容(英文)                                                   |                            错误内容(中文)                            |
    +========+=================================+==========+====================================================================================================================+======================================================================+
    | 1000   | warning                         | W        | NUMBER scale > presion, and set presion = scale, (%d, %d).                                                         | number 标度>精度,设置精度=标度 (%d, %d)                              |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2000   | no_data                         | W        | "variable or constant ""%s"" does not exists"                                                                      | 变量或常量 %s 不存在                                                 |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 8000   | connection_exception            | E        | failed(rc:%d) to flush message(%d)                                                                                 | 刷新消息(rc:%d)失败(%d)                                              |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 8003   | connection_does_not_exist       | E        | connection not available                                                                                           | 连接不可用                                                           |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 8006   | connection_failure              | E        | errors communicating with the proxy                                                                                | 与代理通信错误                                                       |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 8001   | sqlclient_unable_to_establish   | E        | could not establish connection                                                                                     | 无法建立连接                                                         |
    |        | _sqlconnection                  |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 08P01  | protocol_violation              | E        | incomplete message from client                                                                                     | 从客户端过来的不完整信息                                             |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 0A000  | feature_not_supported           | E        | FETCH statement cannot return multiple rows                                                                        | FETCH语句无法返回多条记录                                            |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 0L000  | invalid_grantor                 | E        | defaulting grantor to user ID %u                                                                                   | 缺省将授权者身份给予用户ID                                           |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 0LP01  | invalid_grant_operation         | E        | missing or invalid privilege                                                                                       | 缺失或者无效权限                                                     |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 0P000  | invalid_role_specification      | E        | could not translate name                                                                                           | 不能翻译名称                                                         |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 0Z002  | stacked_diagnostics_accessed    | E        | GET STACKED DIAGNOSTICS cannot be used outside an                                                                  | GET STACKED DIAGNOSTICS不能用于异常处理之外                          |
    |        | _without_active_handle          |          | exception handler                                                                                                  |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 20000  | case_not_found                  | E        | case not found                                                                                                     | 没有找到CASE                                                         |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 21000  | cardinality_violation           | E        | "query ""%s"" returned more than one row"                                                                          | "查询""%s""返回多条数据"                                             |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22000  | data_exception                  | E        | "the leading precision of the interval is too small: \""%d\"""                                                     | "interval值的前导精度太小：\""%d\"""                                 |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2202E  |                                 | E        | typmod array must be type cstring[]                                                                                | typmod 数组必须是cstring[]类型                                       |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2202E  | array_subscript_error           | E        | wrong number of array subscripts                                                                                   | 数组下标错误                                                         |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22021  | character_not_in_repertoire     | E        | invalid multibyte character for locale                                                                             | 无效的多字节字符, 对于 locale                                        |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22008  | datetime_field_overflow         | E        | "date/time field value out of range: \""%s\"""                                                                     | "日期/时间值超出范围: \""%s\"""                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22008  |                                 | E        | timestamp out of range                                                                                             | 时间戳超出范围                                                       |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22012  | division_by_zero                | E        | division by zero                                                                                                   | 除以零                                                               |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22015  | interval_field_overflow         | E        | "interval field value out of range: \""%s\"""                                                                      | "间隔字段超出范围: \""%s\"""                                         |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2201E  | invalid_argument_for_logarithm  | E        | cannot take logarithm of a negative number                                                                         | 无法取负数的对数                                                     |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22014  | invalid_argument_for            | E        | argument of ntile must be greater than zero                                                                        | ntile的参数必须大于零                                                |
    |        | _ntile_function                 |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22016  | invalid_argument_for            | E        | argument of nth_value must be greater than zero                                                                    | nth_value的参数必须大于零                                            |
    |        | _nth_value_function             |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2201F  | invalid_argument_for            | E        | zero raised to a negative power is undefined                                                                       | 被提升到负乘方的最低点没有定义                                       |
    |        | _power_function                 |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2201G  | invalid_argument_for            | E        | count must be greater than zero                                                                                    | count 必须大于0                                                      |
    |        | _width_bucket_function          |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22007  | invalid_datetime_format         | E        | "invalid input syntax for type %s: \""%s\"""                                                                       | "类型 %s: \""%s\"" 输入语法无效"                                     |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22025  | invalid_escape_sequence         | E        | invalid Unicode escape                                                                                             | 无效的Unicode转义字符                                                |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22P06  | nonstandard_use_of_escape       | E        | nonstandard use of escape in a string literal                                                                      | 在字符串常量中以不标准的方法使用转义字符                             |
    |        | _character                      |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22023  | invalid_parameter_value         | E        | Invalid input parameter                                                                                            | 参数值无效                                                           |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22013  | invalid_preceding_or            | E        | frame starting offsetVal must not be negative                                                                      | frame startoffsetval不能为负                                         |
    |        | _following_size                 |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2201B  | invalid_regular_expression      | E        | invalid regular expression: %s                                                                                     | 无效的正则表达式: %s                                                 |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2201W  | invalid_row_count               | E        | %s must not be negative                                                                                            | %s 参数不能为负数                                                    |
    |        | _in_limit_clause                |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2201X  | invalid_row_count_in_result     | E        | OFFSET must not be negative                                                                                        | OFFSET后的值不能是负数                                               |
    |        | _offset_clause                  |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2202H  | invalid_tablesample_argument    | E        | tablesample method %s requires %d argument, not %d                                                                 | 表采样方法%s要求%d个参数,而不是%d个                                  |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2202G  | invalid_tablesample_repeat      | E        | TABLESAMPLE REPEATABLE parameter cannot be null                                                                    | TABLESAMPLE REPEATABLE参数不能为null                                 |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22009  | invalid_time_zone               | E        | time zone displacement out of range                                                                                | 时区位移超出范围                                                     |
    |        | _displacement_value             |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2200C  | invalid_use_of_escape           | E        | SQL regular expression may not contain more than                                                                   | SQL正则表达式不能包含两个以上的转义双引号分隔符                      |
    |        | _character                      |          | two escape-double-quote separators                                                                                 |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22004  | null_value_not_allowed          | E        | dimension values cannot be null                                                                                    | 维度值不能为空                                                       |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22003  | numeric_value_out_of_range      | E        | integer out of range                                                                                               | 整数超出范围                                                         |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2200H  | sequence_generator_limit        | E        | "nextval: over maximum value of sequence \""%s\"" (%s)"                                                            | "nextval: 超过序列 \""%s\"" 的最大值了 (%s)"                         |
    |        | _exceeded                       |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22026  | string_data_length_mismatch     | E        | bit string length %d does not match type bit(%d)                                                                   | bit字符串的长度(%d)与bit类型(%d)不匹配.                              |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22001  | string_data_right_truncation    | E        | value too long for type character varying(%d)                                                                      | 对于可变字符类型来说,值太长了(%d)                                    |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22011  | substring_error                 | E        | negative substring length not allowed                                                                              | 不允许子串长度为负数                                                 |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22027  | trim_error                      | E        | trim set should have only one character                                                                            | 不允许多个字符的情况下删除字符集中只能有一个字符                     |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2200F  | zero_length_character_string    | E        | output cannot be empty string                                                                                      | 输出不能有空字符串                                                   |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22P02  | invalid_text_representation     | E        | "invalid input syntax for type %s: \""%s\"""                                                                       | "类型 %s: \""%s\"" 输入语法无效"                                     |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22P03  | invalid_binary_representation   | E        | invalid length in external bit string                                                                              | 无效的外部位串长度                                                   |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22P04  | bad_copy_file_format            | E        | invalid COPY file header (missing flags)                                                                           | 无效的 COPY 文件头 (缺少标志)                                        |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22P05  | untranslatable_character        | E        | unsupported Unicode escape sequence                                                                                | 不支持的Unicode转义序列                                              |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2200L  | not_an_xml_document             | E        | not an XML document                                                                                                | 不是一个XML文档                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2200M  | invalid_xml_document            | E        | could not parse XML document                                                                                       | 不能解析XML文档                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2200N  | invalid_xml_content             | E        | invalid XML content                                                                                                | 无效的xml内容                                                        |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2200S  | invalid_xml_comment             | E        | invalid XML comment                                                                                                | 无效的XML注释                                                        |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2200T  | invalid_xml_processing          | E        | invalid XML processing instruction                                                                                 | 无效的XML处理指令                                                    |
    |        | _instruction                    |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22030  | duplicate_json_object           | E        | duplicate JSON object key value                                                                                    | 重复的JSON键值                                                       |
    |        | _key_value                      |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22032  | invalid_json_text               | E        | at args %d,JSON syntax error.                                                                                      | 在参数 %d,JSON 语法错误.                                             |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22033  | invalid_sql_json_subscript      | E        | jsonpath array subscript is out of bounds                                                                          | jsonpath数组下标越界                                                 |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22034  | more_than_one_sql_json          | E        | JSON path expression in JSON_QUERY should return singleton item without wrapper                                    | JSON_QUERY中的JSON路径表达式应该返回一个没有包装器的单例项目         |
    |        | _item                           |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22035  | no_sql_json_item                | E        | no SQL/JSON item                                                                                                   | 没有 SQL/JSON 项                                                     |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22036  | non_numeric_sql_json_item       | E        | jsonpath item method .%s() can only be applied to a string or numeric value                                        | jsonpath成员方法.%s()只能接收字符串或数字                            |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22038  | singleton_sql_json_item         | E        | single boolean result is expected                                                                                  | 预期单个布尔结果                                                     |
    |        | _required                       |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 22039  | sql_json_array_not_found        | E        | jsonpath wildcard array accessor can only be applied to an array                                                   | jsonpath通配符数组访问器只能应用于数组                               |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2203A  | sql_json_member_not_found       | E        | jsonpath member accessor can only be applied to an object                                                          | jsonpath成员访问器只能应用于对象                                     |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2203B  | sql_json_number_not_found       | E        | operand of unary jsonpath operator %s is not a numeric value                                                       | 一元的jsonpath操作符 %s 的操作数不是一个数值                         |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2203C  | sql_json_object_not_found       | E        | jsonpath wildcard member accessor can only be applied to an object                                                 | jsonpath通配符成员访问器只能应用于对象                               |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2203F  | sql_json_scalar_required        | E        | JSON path expression in JSON_VALUE should return singleton scalar item                                             | JSON_VALUE中的JSON路径表达式应该返回一个标量项                       |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 23001  | restrict_violation              | E        | The exclusion constraint does not support ALTER TABLE MODIFY CONSTRAINT ENABLE/DISABLE                             | 排他约束不支持 ALTER TABLE MODIFY CONSTRAINT ENABLE/DISABLE          |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 23502  | not_null_violation              | E        | "null value in column \""%s\"" violates not-null constraint"                                                       | "在字段 \""%s\"" 中空值违反了非空约束"                               |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 23503  | foreign_key_violation           | E        | "insert or update on table \""%s\"" violates foreign key constraint \""%s\"""                                      | "在表 \""%s\"" 上执行插入或更新操作违反外键约束 \""%s\"""            |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 23505  | unique_violation                | E        | "duplicate key value violates unique constraint \""%s\"""                                                          | "重复键违反唯一约束\""%s\"""                                         |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 23514  | check_violation                 | E        | "no partition of relation \""%s\"" found for row"                                                                  | "没有为行找到关系\""%s\""的分区"                                     |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 23P01  | exclusion_violation             | E        | "could not create exclusion constraint \""%s\"""                                                                   | "无法创建排他约束\""%s\"""                                           |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 24000  | invalid_cursor_state            | E        | cursor %s has not open                                                                                             | 游标 %s 未打开                                                       |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 25000  | invalid_transaction_state       | E        | cannot commit during a parallel operation                                                                          | 并行操作期间无法提交                                                 |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 25001  | active_sql_transaction          | E        | cannot export a snap from a subtransaction                                                                         | 无法从子事务导出快照                                                 |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 25006  | read_only_sql_transaction       | E        | cannot create temporary tables during recovery                                                                     | 不能在恢复过程中创建临时表                                           |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 25P01  | no_active_sql_transaction       | E        | can only be used in transaction blocks                                                                             | 只能在事务块中使用                                                   |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 25P02  | in_failed_sql_transaction       | E        | current transaction is aborted, commands ignored until end of transaction block                                    | 当前事务被终止, 事务块结束之前的查询被忽略                           |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 26000  | invalid_sql_statement_name      | E        | "Filename \""%s\"" is too long"                                                                                    | "文件\""%s\""太长"                                                   |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 27000  | triggered_data_change           | E        | tuple to be deleted was already modified by an operation triggered by the current command                          | 待删除元组值已经被当前命令触发的操作修改了                           |
    |        | _violation                      |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 28000  | invalid_authorization           | E        | "KB certificate authentication failed for user \""%s\"""                                                           | "用户\""%s\""的KB证书身份验证失败"                                   |
    |        | _specification                  |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 28P01  | invalid_password                | E        | "password authentication failed for user \""%s\"""                                                                 | "用户 \""%s\"" Password 认证失败"                                    |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 28P02  | weak_password                   | E        | password is too weak!                                                                                              | 密码太弱!                                                            |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2BP01  | dependent_objects_still_exist   | E        | cannot drop %s because %s requires it                                                                              | 无法删除 %s, 因为 %s 需要它                                          |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2D000  | invalid_transaction             | E        | invalid transaction termination                                                                                    | 无效交易终止                                                         |
    |        | _termination                    |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2F005  | function_executed_no_return     | E        | control reached end of function without RETURN                                                                     | 控制流程到达函数的结束部分,但是没有看到RETURN                        |
    |        | _statement                      |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 2F003  | prohibited_sql_statement        | E        | password is required                                                                                               | 密码是被要求的                                                       |
    |        | _attempted                      |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 34000  | invalid_cursor_name             | E        | "cursor \""%s\"" does not exist"                                                                                   | "游标 ""%s"" 不存在"                                                 |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 38000  | external_routine_exception      | E        | uuid library failure: %d                                                                                           | uuid 库失败：%d                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 39004  | null_value_not_allowed          | E        | "null is not allowed in column \""%s\"                                                                             | "列\""%s\""中不允许为空"                                             |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 39P02  | srf_protocol_violated           | E        | table-function protocol for materialize mode was not followed                                                      | 没有跟随针对物化模式的表函数协议                                     |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 39P03  | event_trigger_protocol          | E        | %s can only be called in a sql_drop event trigger function                                                         | %s只能在sql_drop事件触发器函数中被调用                               |
    |        | _violated                       |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 3B001  | invalid_savepoint               | E        | "savepoint """" does not exist"                                                                                    | "保存点""""不存在"                                                   |
    |        | _specification                  |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 3F000  | invalid_schema_name             | E        | cannot create private database link under public schema,                                                           | 不能再公有模式下创建database link,请指定public关键字或者更改当前模式 |
    |        |                                 |          | please specify public keyword or change the current schema                                                         |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 40001  | serialization_failure           | E        | could not serialize access due to concurrent update                                                                | 由于同步更新而无法串行访问                                           |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 40P01  | deadlock_detected               | E        | deadlock detected                                                                                                  | 检测到死锁                                                           |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42000  | syntax_error_or_access          | E        | syntax error or access rule violation                                                                              | 语法错误或者违反接入规则                                             |
    |        | _rule_violation                 |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42601  | syntax_error                    | E        | conflicting or redundant options                                                                                   | 选项冲突或过多                                                       |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42501  | insufficient_privilege          | E        | must be superuser to alter superusers                                                                              | 只有超级用户能修改超级用户                                           |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42803  | grouping_error                  | E        | aggregate function calls cannot be nested                                                                          | 不允许嵌套调用聚合函数                                               |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42P20  | windowing_error                 | E        | frame start cannot be UNBOUNDED FOLLOWING                                                                          | 框架的起始位置不能被执行UNBOUNDED FOLLOWING操作.                     |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42P19  | invalid_recursion               | E        | "recursive reference to query \""%s\"" must not appear more than once"                                             | "对查询\""%s\""的递归引用不能出现多次"                               |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42830  | invalid_foreign_key             | E        | number of referencing and referenced columns for foreign key disagree                                              | 外键的关联数和关联字段不一致                                         |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42602  | invalid_name                    | E        | "invalid set label \""%s\"""                                                                                       | 无效的设置标签 “%s”                                                  |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42622  | name_too_long                   | E        | "the length of the \""%s\"" type is too long"                                                                      | "\""%s\"" 类型的长度太长"                                            |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42939  | reserved_name                   | E        | "role name \""%s\"" is reserved"                                                                                   | "角色名称 \""%s\"" 被保留了"                                         |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42804  | datatype_mismatch               | E        | cannot compare arrays of different element types                                                                   | 无法比较不同元素类型的数组                                           |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42P21  | collation_mismatch              | E        | "collation mismatch between implicit collations \""%s\"" and \""%s\"""                                             | "排序名：\""%s\"" 和 \""%s\""之间的排序规则不匹配"                   |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42P22  | indeterminate_collation         | E        | could not determine which collation to use for string hashing                                                      | 无法确定用于字符串哈希的排序规则                                     |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42809  | wrong_object_type               | E        | type %s is not composite                                                                                           | 类型 %s 不是复合类型                                                 |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 428C9  | generated_always                | E        | Cannot insert explicit value for identity column in table '%s' when                                                | 当IDENTITY_INSERT为OFF时,不能往表'%s'中identity列显示插入值          |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42P29  | undefined_synonym               | E        | synonym %s.%s does not exist                                                                                       | 同义词%s.%s不存在                                                    |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42P30  | duplicate_synonym               | E        | synonym %s already exists                                                                                          | 同义词%s已经存在                                                     |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42703  | undefined_column                | E        | "column \""%s\"" of relation \""%s\"" does not exist"                                                              | "关系 \""%2$s\"" 的 \""%1$s\"" 字段不存在"                           |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42883  | undefined_function              | E        | "function \""%s\"" does not exist"                                                                                 | 函数 %s 不存在                                                       |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42P01  | undefined_table                 | E        | "relation \""%s.%s\"" does not exist"                                                                              | "关系 \""%s.%s\"" 不存在"                                            |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42P02  | undefined_parameter             | E        | there is no parameter :%s                                                                                          | 没有参数 ：%s                                                        |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42704  | undefined_object                | E        | "language \""%s\"" does not exist"                                                                                 | language对象%s不存在                                                 |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42701  | duplicate_column                | E        | "column \""%s\"" appears twice in primary key constraint"                                                          | 主键约束中列%s出现了两次                                             |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42P03  | duplicate_cursor                | E        | "cursor \""%s\"" already in use"                                                                                   | 游标%s已经被打开使用                                                 |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42P04  | duplicate_database              | E        | "database \""%s\"" already exists, skipping"                                                                       | 数据库%s已经存在,跳过                                                |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42723  | duplicate_function              | E        | "function or procedure \""%s\"" already exists"                                                                    | 函数或过程 “%s” 已存在                                               |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42P05  | duplicate_prepared_statement    | E        | "prepared statement \""%s\"" already exists"                                                                       | 预编译语句%s已经存在                                                 |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42P06  | duplicate_schema                | E        | "schema \""%s\"" already exists"                                                                                   | 模式%s已存在                                                         |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42P07  | duplicate_table                 | E        | "relation \""%s\"" already exists"                                                                                 | 关系%s已存在                                                         |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42712  | duplicate_alias                 | E        | "table name \""%s\"" specified more than once"                                                                     | 表名%s指定了多次                                                     |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42710  | duplicate_object                | E        | "type \""%s\"" already exists"                                                                                     | 类型%s已存在                                                         |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42702  | ambiguous_column                | E        | "common column name \""%s\"" appears more than once in right table"                                                | "共同的字段名 \""%s\"" 在右边的表中出现了多次"                       |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42725  | ambiguous_function              | E        | "more than one function named \""%s\"""                                                                            | 超过一个函数名字叫%s                                                 |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42P08  | ambiguous_parameter             | E        | user cannot join resource group %s.                                                                                | 用户不能加入资源组 %s                                                |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42P09  | ambiguous_alias                 | E        | "table reference \""%s\"" is ambiguous"                                                                            | "表关联 \""%s\"" 是不明确的"                                         |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42P10  | invalid_column_reference        | E        | Invalid column in the INSERT VALUES Clause                                                                         | INSERT VALUES 子句中的列无效                                         |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42611  | invalid_column_definition       | E        | "column \""%s\"" inherits conflicting default values"                                                              | "列 \""%s\"" 继承与默认值冲突"                                       |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42P11  | invalid_cursor_definition       | E        | maximum open cursors exceeded                                                                                      | 超出最大打开游标数                                                   |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42P13  | invalid_function_definition     | E        | cannot change mode of input parameter                                                                              | 无法更改输入参数的模式                                               |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42P15  | invalid_schema_definition       | E        | CREATE specifies a schema (%s) different from the one being created (%s)                                           | CREATE 指定的模式 (%s) 和将要创建的 (%s) 不同                        |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42P16  | invalid_table_definition        | E        | temporary tables cannot specify a schema name                                                                      | 临时表不能指定模式名                                                 |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 42P17  | invalid_object_definition       | E        | "table \""%s\"" is not a partitioned table"                                                                        | 表 “%s”不是一个分区表                                                |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 44000  | with_check_option_violation     | E        | "new row violates check option for view \""%s\"""                                                                  | "新行违反了视图\""%s\""的检查选项"                                   |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 53000  | insufficient_resources          | E        | out of file descriptors: %m; release and retry                                                                     | 超出文件描述符: %m; 释放再重试                                       |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 53100  | disk_full                       | E        | "could not extend file \""%s\"": wrote only %d of %d bytes at block %u"                                            | "无法扩展文件\""%1$s\"": 只能在块%4$u上写%3$d字节的%2$d"             |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 53200  | out_of_memory                   | E        | out of memory                                                                                                      | 内存溢出/内存用尽                                                    |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 53300  | too_many_connections            | E        | sorry, too many clients already                                                                                    | 对不起, 已经有太多的客户端                                           |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 53400  | configuration_limit_exceeded    | E        | temporary file size exceeds temp_file_limit (%dkB)                                                                 | 临时文件大小超过最大允许值temp_file_limit(%dkB)                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 54000  | program_limit_exceeded          | E        | too many INTO variables specified                                                                                  | 在INTO后面指定了太多的变量                                           |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 54001  | statement_too_complex           | E        | too many grouping sets present (maximum 4096)                                                                      | 出现过多分组集合（最大4096个）                                       |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 54011  | too_many_columns                | E        | number of columns (%d) exceeds limit (%d)                                                                          | 字段个数 (%d) 超出限制 (%d)                                          |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 54023  | too_many_arguments              | E        | functions cannot have more than %d argument                                                                        | 函数的参数不能多于%d个                                               |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 55000  | object_not_in_prerequisite      | E        | src_restrict must be loaded via shared_preload_libraries                                                           | src_restrict 必须通过 shared_preload_libraries 加载                  |
    |        | _state                          |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 55006  | object_in_use                   | E        | "directory \""%s\"" already in use as a tablespace"                                                                | "目录 \""%s\"" 以一个表空间的形式正在使用"                           |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 55P02  | cant_change_runtime_param       | E        | "parameter \""%s\"" cannot be changed"                                                                             | 参数 %s 不能被改变                                                   |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 55P03  | lock_not_available              | E        | could not obtain lock on relation                                                                                  | "无法在关系 \""%s.%s\"" 上获得锁"                                    |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 55P04  | unsafe_new_enum_value           | E        | "unsafe use of new value \""%s\"" of enum type %s"                                                                 | 不安全地使用 %s,该值是enum 类型%s上的一个新的成员值                  |
    |        | _usage                          |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 57014  | query_canceled                  | E        | canceling statement due to user request                                                                            | 由于用户请求而正在取消查询                                           |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 57P01  | admin_shutdown                  | E        | terminating logical replication worker due to administrator command                                                | 由于管理员命令而终止逻辑复制工作线程                                 |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 57P02  | crash_shutdown                  | E        | terminating connection because of crash of another server process                                                  | 中断联接, 因为其它服务器进程崩溃                                     |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 57P03  | cannot_connect_now              | E        | the database system is in recovery mode                                                                            | 数据库系统在恢复模式中                                               |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 57P04  | database_dropped                | E        | terminating connection due to conflict with recovery                                                               | 因为与恢复存在冲突终止连接                                           |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 58000  | system_error                    | E        | could not get token information: error cod                                                                         | 无法获得令牌信息: 错误码                                             |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 58030  | io_error                        | E        | could not read input file %m                                                                                       | 无法读取输入文件 %m                                                  |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 58P01  | undefined_file                  | E        | "cannot create directory \""%s\"": %m"                                                                             | "无法创建目录 \""%s\"": %m"                                          |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | 72000  | snapshot_too_old                | E        | snapshot too old                                                                                                   | 快照太旧                                                             |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | F0001  | lock_file_exists                | E        | "lock file \""%s\"" already exists"                                                                                | "锁文件 \""%s\"" 已经存在."                                          |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | HV000  | fdw_error                       | E        | OCINumberFromInt failed to convert integer to NUMBER                                                               | OCINumberFromInt 将int转换到NUMBER类型失败                           |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | HV005  | fdw_column_name_not_found       | E        | "system attribute \""%s\"" can't be fetched from remote relation"                                                  | "不能从远端关系中获取系统属性""%s"""                                 |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | HV002  | fdw_dynamic_parameter           | E        | either filename or program is required for file_fdw foreign tables                                                 | file_fdw外表需要文件名或程序                                         |
    |        | _value_needed                   |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | HV024  | fdw_invalid_attribute_value     | E        | "invalid value for option \""%s\"""                                                                                | "无效的option值""%s"""                                               |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | HV004  | fdw_invalid_data_type           | E        | "column \""%s\"" of foreign table \""%s\"" cannot                                                                  | 外表 %s的列%s不能和oracle数据类型互相映射                            |
    |        |                                 |          | be converted to or from Oracle data type"                                                                          |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | HV00D  | fdw_invalid_option_name         | E        | "invalid option \""%s\"""                                                                                          | "无效的选项""%s"""                                                   |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | HV001  | fdw_out_of_memory               | E        | out of memory                                                                                                      | 内存耗尽                                                             |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | HV00P  | fdw_no_schemas                  | E        | "foreign-data wrapper \""%s\"" does not support IMPORT FOREIGN SCHEMA"                                             | "fdw ""%s""不支持 IMPORT FOREIGN SCHEMA 功能"                        |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | HV00J  | fdw_option_name_not_found       | E        | "required option \""%s\"" in foreign table \""%s\"" missing"                                                       | "需要的option ""%s""丢失,无法访问外表""%s"""                         |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | HV00Q  | fdw_schema_not_found            | E        | "remote schema \""%s\"" does not exist"                                                                            | "远端模式名""%s""不存在"                                             |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | HV00R  | fdw_table_not_found             | E        | relation %s.%s does not exist                                                                                      | 关系%s.%s不存在                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | HV00L  | fdw_unable_to_create            | E        | RETURNING is not supported by this FDW                                                                             | FDW不支持RETURNING子句                                               |
    |        | _execution                      |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | HV00M  | fdw_unable_to_create_reply      | E        | Internal oracle_fdw error: encountered unknown node type %d.                                                       | 内部oracle_fdw错误:不支持处理无法识别的节点类型：%d                  |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | HV00N  | fdw_unable_to_establish         | E        | failed to connect to MySQL: %s                                                                                     | 无法连接到MySQL：%s                                                  |
    |        | _connection                     |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | P0002  | no_data_found                   | E        | no data found                                                                                                      | 未找到数据                                                           |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | P0003  | too_many_rows                   | E        | query returned more than one row                                                                                   | 查询返回多条记录                                                     |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | P0004  | assert_failure                  | E        | assertion failed                                                                                                   | 断言失败                                                             |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | P0005  | self_is_null                    | E        | method dispatch on NULL SELF argument is disallowed                                                                | 不允许对 NULL SELF 参数进行方法调度                                  |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | P0006  | collection_is_null              | E        | reference to uninitialized collection                                                                              | 对未初始化集合的引用                                                 |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | P0007  | subscript_outside_limit         | E        | subscript outside limit                                                                                            | 集合类型下标超出限制                                                 |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | P0008  | subscript_beyond_count          | E        | subscript beyond count                                                                                             | 下标超出计数                                                         |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | P0013  | sys_invalid_rowid               | E        | "invalid input syntax for type %s: \""%s\"""                                                                       | 类型 %s 的输入语法无效                                               |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | P0014  | rowtype_mismatch                | E        | The number of variables declared in the INTO list must                                                             | 变量个数和INTO列表的个数不匹配                                       |
    |        |                                 |          | match that of selected columns.                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | P0306  | record_invalid_operation        | E        | record type not support operation is null or is not null                                                           | 记录类型不支持操作为空或为空                                         |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | XX000  | internal_error                  | E        | resolvebindcpuliststr fail.                                                                                        | 解决绑定 CPU 列表失败.                                               |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | XX001  | data_corrupted                  | E        | checksum error occurred                                                                                            | 发生校验和错误                                                       |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | XX002  | index_corrupted                 | E        | "index \""%s\"" contains unexpected zero page at block %u"                                                         | "索引\""%s\""在块%u上包含未期望的零页"                               |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | F1000  | tablespace_is_offline           | E        | Tablespace(%s) you specify in offline mode, does not allow alter operation!                                        | 在脱机模式下指定的表空间 （%s） 不允许更改操作！                     |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | F1001  | tablespace_is_readonly          | E        | Tablespace(%s) you specify is not in read write mode,                                                              | 您指定的表空间 （%s） 未处于读写模式,不允许切换到只读模式！          |
    |        |                                 |          | does not allow switch to read only mode!                                                                           |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | F1002  | tablespace_is_write             | E        | Tablespace(%s) you specify is not in read only mode,                                                               | 您指定的表空间（%s）未处于只读模式,不允许切换到读写模式！            |
    |        |                                 |          | does not allow switch to read write mode!                                                                          |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+
    | F1003  | tablespace_operation            | E        | System tablespace's mode cannot be changed!                                                                        | 系统表空间的模式无法更改！                                           |
    |        | _notsupport                     |          |                                                                                                                    |                                                                      |
    +--------+---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------+

