HV008 — fdw_invalid_column_number(外部列号无效)
包装器描述符收到超出范围的列序号。
英文手册覆盖始于 PostgreSQL 8.1. 来源历史与运行验证各自保留独立版本边界。
当前阅读 PG 18·选择有来源记录的版本
- aliases
- 未知
- class name
- Foreign Data Wrapper Error (SQL/MED)
- condition name
- fdw_invalid_column_number
- lang
- en
- sqlstate
- HV008
版本定义 PG 18
HV008 — fdw_invalid_column_number
速览 {#at-a-glance}
HV008 表示 FDW 描述符或回调收到超出范围的列序号。PostgreSQL 18.6 定义了它,但核心/contrib 扫描没有找到直接报告组或自带报文。
含义 {#meaning}
包装器使用的序号不在当前描述符范围内。这是映射/描述符问题,不代表列名缺失(HV005)或名称不合法(HV007)。
报文与诊断 {#messages}
没有确认的核心报文。保留序号、描述符宽度、本地关系、回调阶段以及包装器/远端元数据版本。
诊断 {#diagnosis}
比较目标列表、pg_attribute.attnum 和包装器远端列数组,检查 dropped 列、投影改写以及规划与执行之间的模式变化;然后查看实际包装器索引描述符的回调。
处理 {#response}
修正外部表映射或包装器的序号转换后重新规划语句。不要随意删列来掩盖问题,修复取决于错误序号来自哪个描述符边界。
版本 {#versions}
目录从 9.1.0 观察到该码,所有锁定正式快照至 18.6 及 19 Beta 3 均有;pre-9 定义文件未观察到。
相关 {#related}
HV005 是名称找不到;HV007 是名称无效;HV006 是类型描述符元数据无效。
来源 {#sources}
errcodes.txt— 定义,SHA-2566e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba。fdwapi.h— 回调边界。- 结构化证据 — 有界扫描与来源边界。
比较版本
SQLSTATE 证据与已记录的运行版本
claims · identity
{
"claim_id": "identity",
"limits": "",
"method": "Read the fixed definition row.",
"position": 0,
"runtime": [],
"sources": [
"src.errcodes.18.6"
],
"statement": "HV008 is fdw_invalid_column_number in Class HV."
}claims · scan-boundary
{
"claim_id": "scan-boundary",
"limits": "Ordinal semantics are wrapper-specific. 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 HV008 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": ""
}来源引用
定义来源
center · PostgreSQL 18 · english-manuals:6e999c7f19a51397e4de4e5d52c8aa1d7e92e21c0f3e2a8d92c3ba6300da60e4
正文语言: zh-Hans · english-manuals:6e999c7f19a51397e4de4e5d52c8aa1d7e92e21c0f3e2a8d92c3ba6300da60e4