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

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

Wiki / SQLSTATE

HV005 — fdw_column_name_not_found(找不到外部列名)

包装器在远端或描述符中找不到该外部列名。

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

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

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

版本定义 PG 18

HV005 — fdw_column_name_not_found

速览 {#at-a-glance}

HV005 表示包装器无法在相关远端或导入描述符中找到外部列名。18.6 核心/contrib 扫描没有解析出直接报告组,具体系统和报文必须从实际部署的包装器确认。

含义 {#meaning}

这是 FDW 边界的名称查找问题:导入或规划得到的列名不在包装器正在使用的描述符中。它不同于外部表缺失,也不同于本地 SQL 的 42703。

报文与诊断 {#messages}

没有固定核心报文。保留准确列名、大小写/引号上下文、外部表或远端关系、包装器版本以及导入、规划、扫描还是修改阶段。

诊断 {#diagnosis}

比较 pg_attribute 和包装器的远端元数据及名称转换规则;适用时重新做模式发现或检查导入映射。不能只凭本地目标列表推断远端列存在。

处理 {#response}

修正外部表列定义或包装器名称映射,并按文档刷新远端模式元数据。描述符一致后再重试;事务重试不能创建缺失列。

版本 {#versions}

目录从 9.1.0 观察到该码,延续到 18.6 与 19 Beta 3;pre-9 定义文件未观察到它,精确引入未知。

相关 {#related}

HV007 是名称无效;HV008 是序号无效;42703 是本地未定义列。

来源 {#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": "HV005 is fdw_column_name_not_found in Class HV."
}
claims · scan-boundary
{
  "claim_id": "scan-boundary",
  "limits": "External wrappers and remote systems are outside the scan. Generic API context and the absent resolved report group do not establish a source path emitting this SQLSTATE.",
  "method": "Compare resolved report groups with the macro mapping.",
  "position": 1,
  "runtime": [],
  "sources": [
    "src.calls.REL_18_6",
    "src.fdwapi.18.6"
  ],
  "statement": "No direct HV005 report group was resolved in the locked PostgreSQL 18.6 core/contrib call scan."
}
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:fad6c0da18736e490a05979b18a1642f7934d5b29f9254f6b0de21e2abdfb6cb

正文语言: zh-Hans · english-manuals:fad6c0da18736e490a05979b18a1642f7934d5b29f9254f6b0de21e2abdfb6cb