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

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

Wiki / SQLSTATE

HV00A — fdw_invalid_string_format(外部数据包装器字符串格式无效)

包装器无法接受该字符串的格式。

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

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

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

版本定义 PG 18

HV00A — fdw_invalid_string_format

速览 {#at-a-glance}

HV00A 表示 FDW 边界的字符串格式无效。18.6 核心/contrib 调用扫描没有直接报告组,因此格式语法和报文必须从实际包装器或远端驱动确认。

含义 {#meaning}

包装器拒绝了不符合其语法、转义、编码或格式字段契约的字符串。该码本身不能说明字符串是选项、远端标识符、序列化值还是驱动响应。

报文与诊断 {#messages}

没有确认的核心报文。保留操作、选项或字段名、原始编码/引号、包装器版本和远端诊断,不能只根据条件名改写字符串。

诊断 {#diagnosis}

定位包装器解析或转换函数,按固定版本的格式语法比较原始输入;只在该包装器有明确要求时检查 server encoding 和转义。区分 FDW 选项格式错误、远端 SQL 语法错误和 Class 22 的值格式错误。

处理 {#response}

按包装器文档修正格式,或改用结构化选项/API,避免手工拼接文本。修改后重新创建计划或外部表元数据;相同字符串重试仍会得到相同校验结果。

版本 {#versions}

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

相关 {#related}

HV00D 是选项名不被识别;HV004 是类型不匹配;核心文本/值格式错误可能使用 Class 22 条件。

来源 {#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": "HV00A is fdw_invalid_string_format in Class HV."
}
claims · scan-boundary
{
  "claim_id": "scan-boundary",
  "limits": "The rejected string field and grammar belong to the installed wrapper or remote driver. 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 HV00A 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:e0837b9e9628ea8a5b85b944adcf9f09387d6f4685fad24fe0f07fdc2873615f

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