选择 打开 改范围 完整检索页

pgsql.cc 提供对 postgresql.org 官网内容的中文翻译,由 Pigsty 团队维护。

百科 / 错误代码 / Class HV 外部数据包装器错误

HV021 fdw_inconsistent_descriptor_information

ERROR 仅定义 参考 未实测

类别
Class HV 外部数据包装器错误
严重等级
ERROR
条件名
fdw_inconsistent_descriptor_information
宏名称
ERRCODE_FDW_INCONSISTENT_DESCRIPTOR_INFORMATION
启用版本
9.1
状态
活跃

版本覆盖

速览

HV021 表示 FDW 描述符中的信息不一致。18.6 核心与 contrib 调用扫描没有解析出 HV021 报告组,因此不能指定核心描述符检查或消息。

含义

描述符可能描述列、类型、名称、长度或其他包装器结果契约。fdwapi.h 展示回调和 slot 边界,但没有说明哪种描述符差异会映射到此 SQLSTATE。

消息与诊断

没有解析出 18.6 核心与 contrib 的直接消息变体。保留完整诊断、描述符类型、消息中出现的期望值和实际值、回调阶段、包装器/驱动版本及关系身份。

诊断

比较包装器提供的描述符与回调或消费者期待的描述符。只有包装器或诊断明确支持时,才检查模式变化、类型与列顺序、可空性或长度元数据;不要从一般转换失败推断描述符不一致。

处理

修正实际诊断所指向的包装器描述符构造或远端/模式契约,然后重新建立受影响的计划或对象。若元数据没有改变,重复同一操作不能修复描述符。

版本

HV021 在锁定定义快照 9.1.24 至 18.6 以及 19 Beta 3 中存在,known_present_by 为 9.1.0。现有 9.1 之前定义资料不足以确定精确引入版本。

来源

证据

断言

每条断言都写明了是怎么核实的,以及它不覆盖什么。这一层是核验时留下的原始英文记录,照原样呈现,未经翻译。

  • HV021 is fdw_inconsistent_descriptor_information in SQL/MED Class HV.

    核实方式Read the fixed errcodes definition row and macro.

    来源src/backend/utils/errcodes.txt

  • The condition name identifies inconsistent descriptor information at an FDW boundary. The descriptor fields and producer/consumer contract remain implementation-specific.

    核实方式Read the fixed FDW callback signatures and FdwRoutine structure.

    不覆盖Generic API context is background only and does not prove an emitting path for this SQLSTATE.

    来源src/include/foreign/fdwapi.h

  • No resolved HV021 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.

    核实方式Compare resolved report groups with the fixed macro mapping.

    不覆盖This scan does not cover external wrappers, drivers, remote systems, or user callbacks; absence from the scan is not an absolute absence claim.

    来源raw/calls/REL_18_6.jsonl · src/backend/utils/errcodes.txt

  • The locked release definition snapshots establish presence from the known 9.1.0 boundary; the available pre-9 material does not establish an exact introduction release.

    核实方式Compare the canonical release-definition facts with the available pre-9 source boundary.

    不覆盖Definition presence does not prove runtime use.

    来源src/backend/utils/errcodes.txt

同类错误代码

Class HV 外部数据包装器错误 下的其他成员。