↑↓ 选择↵ 打开⌫ 切换范围完整搜索

PG.CENTER 连接 PostgreSQL 文档、百科与生态知识。由 Pigsty 维护。

Wiki / SQLSTATE

HV006 — fdw_invalid_data_type_descriptors(外部数据类型描述符无效)

包装器的数据类型描述符不一致或不可用。

英文手册覆盖始于 PostgreSQL 8.1. 来源历史与运行验证各自保留独立版本边界。

当前阅读 PG 18·选择有来源记录的版本

aliases
未知
class name
Foreign Data Wrapper Error (SQL/MED)
condition name
fdw_invalid_data_type_descriptors
lang
en
sqlstate
HV006

版本定义 PG 18

HV006 — fdw_invalid_data_type_descriptors

速览 {#at-a-glance}

HV006 针对 FDW 边界上无效的数据类型描述符。18.6 定义了它,但核心/contrib 调用扫描没有解析出直接报告组,因此没有自带包装器报文或自然 SQL 复现。

含义 {#meaning}

它描述的是描述符元数据本身,例如类型 OID、长度、精度或 typmod 与回调契约不一致;不是某一个值转换失败(HV004)。

报文与诊断 {#messages}

没有固定核心报文。记录描述符字段及其值、本地和远端关系、回调阶段、包装器版本及远端元数据响应,不能由条件名拼造报文。

诊断 {#diagnosis}

沿着模式导入/规划到元组转换追踪描述符,查看构造或消费它的包装器回调,并与 fdwapi.h 和固定版本文档比较。扩展二进制与远端模式变更是更有价值的线索。

处理 {#response}

修正描述符构造,或使外部表元数据与远端模式一致。若问题从扩展升级后出现,验证匹配的服务器/扩展 ABI;描述符修复前不要盲目重试。

版本 {#versions}

锁定目录从 9.1.0 观察到该码,正式快照延续至 18.6,19 Beta 3 也有;pre-9 没有可用观察。

相关 {#related}

HV004 是类型不匹配;HV021 是更广义的描述符信息不一致;本码聚焦类型描述符字段。

来源 {#sources}

  • errcodes.txt — 定义,SHA-256 6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba。
  • fdwapi.h — 回调契约。
  • 结构化证据 — 有界扫描与来源边界。

比较版本

SQLSTATE 证据与已记录的运行版本

claims · identity
{
  "claim_id": "identity",
  "limits": "",
  "method": "Read the fixed definition row.",
  "position": 0,
  "runtime": [],
  "sources": [
    "src.errcodes.18.6"
  ],
  "statement": "HV006 is fdw_invalid_data_type_descriptors in Class HV."
}
claims · scan-boundary
{
  "claim_id": "scan-boundary",
  "limits": "Concrete descriptor fields belong to the installed wrapper. Generic API context and the absent resolved report group do not establish a source path emitting this SQLSTATE.",
  "method": "Compare callback contract and resolved report groups.",
  "position": 1,
  "runtime": [],
  "sources": [
    "src.fdwapi.18.6",
    "src.calls.REL_18_6"
  ],
  "statement": "The locked 18.6 core/contrib scan has no direct HV006 report group; the API boundary is the available implementation context."
}
sources · src.errcodes.18.6
{
  "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
  "docs_url": "",
  "kind": "upstream_source",
  "location": "",
  "path": "src/backend/utils/errcodes.txt",
  "position": 0,
  "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
  "source_id": "src.errcodes.18.6",
  "tag": "REL_18_6",
  "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt"
}
sources · src.fdwapi.18.6
{
  "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
  "docs_url": "",
  "kind": "upstream_source",
  "location": "",
  "path": "src/include/foreign/fdwapi.h",
  "position": 1,
  "sha256": "572ba892e6435ca92d3b3bc84dde5bbd3160cc3a082693daab8daa835c4d2cd7",
  "source_id": "src.fdwapi.18.6",
  "tag": "REL_18_6",
  "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/foreign/fdwapi.h"
}
sources · src.calls.REL_18_6
{
  "commit": "",
  "docs_url": "",
  "kind": "local_artifact",
  "location": "",
  "path": "raw/calls/REL_18_6.jsonl",
  "position": 2,
  "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf",
  "source_id": "src.calls.REL_18_6",
  "tag": "",
  "url": ""
}

来源引用

完整定义与证据 JSON

定义来源

center · PostgreSQL 18 · english-manuals:303e240a553ba8225bdd22bc7da07bc0abac587bd4ce23e01678b4c93f8d1151

正文语言: zh-Hans · english-manuals:303e240a553ba8225bdd22bc7da07bc0abac587bd4ce23e01678b4c93f8d1151