01004 — string_data_right_truncation
字符串数据被右截断的警告条件。
英文手册覆盖始于 PostgreSQL 8.1. 来源历史与运行验证各自保留独立版本边界。
当前阅读 PG 18·选择有来源记录的版本
- aliases
- 未知
- class name
- Warning
- condition name
- string_data_right_truncation
- lang
- en
- sqlstate
- 01004
版本定义 PG 18
01004 — string_data_right_truncation
速览 {#at-a-glance}
01004 的名称描述作为警告报告的右截断。没有解析出 18.6 核心与 contrib 报告组,因此不能指定某个转换、编码、客户端或消息。
含义 {#meaning}
定义名称描述作为 warning 条件的右截断。没有解析出的调用组时,实际截断行为、数据是否保留以及来源仍未知。
消息与诊断 {#messages}
没有解析出 18.6 消息变体。应保留值和列上下文、声明长度与接收长度(若有)、编码、来源版本及完整诊断。
诊断 {#diagnosis}
定位实际发出代码,并按其长度和编码规则比较传输值。区分保留截断值的 warning 与拒绝语句的 error;SQLSTATE 本身不能决定这种行为。
处理 {#response}
按来源实现支持的长度或编码调整,并验证数据是否被有意截断。信息可能已经丢失时,不要原样重试输入。
版本 {#versions}
01004 在锁定目录 9.0.23 至 18.6 以及 19 Beta 3 中存在,known_present_by 为 7.4。现有证据确认目录事实,不确认当前核心发射路径。
相关 {#related}
01003 涉及 NULL 消除;01008 涉及零位填充;22001 是独立的错误类别字符串截断。
来源 {#sources}
errcodes.txt— 定义,SHA-2566e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba.- 结构化证据 — 固定来源、消息和运行边界。
比较版本
SQLSTATE 证据与已记录的运行版本
claims · identity
{
"claim_id": "identity",
"limits": "",
"method": "Read the fixed errcodes definition row and macro.",
"position": 0,
"runtime": [],
"sources": [
"src.errcodes.18.6"
],
"statement": "01004 is string_data_right_truncation in SQLSTATE Class 01."
}claims · scan-boundary
{
"claim_id": "scan-boundary",
"limits": "This scan does not cover external clients, drivers, extensions, remote systems, or other implementations; absence from the scan is not an absolute absence claim.",
"method": "Compare resolved report groups with the fixed macro mapping.",
"position": 1,
"runtime": [],
"sources": [
"src.calls.REL_18_6",
"src.errcodes.18.6"
],
"statement": "No resolved 01004 report group was found in the locked PostgreSQL 18.6 core/contrib call scan."
}claims · history-boundary
{
"claim_id": "history-boundary",
"limits": "Definition presence is not an emitting-path observation.",
"method": "Compare the canonical release-definition facts with the available history boundary.",
"position": 2,
"runtime": [],
"sources": [
"src.errcodes.18.6"
],
"statement": "The locked release definitions establish catalogue presence, not a precise introducing release or runtime use."
}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.calls.REL_18_6
{
"commit": "",
"docs_url": "",
"kind": "local_artifact",
"location": "",
"path": "raw/calls/REL_18_6.jsonl",
"position": 1,
"sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf",
"source_id": "src.calls.REL_18_6",
"tag": "",
"url": ""
}来源引用
定义来源
center · PostgreSQL 18 · english-manuals:62f09c0af5586831d340533b39840d41ff26a15423864663dcf0d8cb9c732149
正文语言: zh-Hans · english-manuals:62f09c0af5586831d340533b39840d41ff26a15423864663dcf0d8cb9c732149