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

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

Wiki / SQLSTATE

57000 — operator_intervention

运维干预类别的通用条件,核心未见直接调用。

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

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

aliases
未知
class name
Operator Intervention
condition name
operator_intervention
lang
en
sqlstate
57000

版本定义 PG 18

57000

速览 {#at-a-glance}

57000 是 SQLSTATE Class 57 的 operator_intervention 条件。固定 18.6 定义确实存在,但有界的报告/调用扫描没有解析出该错误码的 PostgreSQL 核心发出调用。因此本页保留机制、消息、severity 与恢复边界未决,不把它归因于 shutdown、timeout 或 cancellation。

含义 {#meaning}

条件名只标识“操作员干预”类别,并不代表唯一服务器阶段。固定扫描结果是有界的否定发现:它不能证明扩展、未来源码路径或尚未解析的间接调用绝不会发出 57000。固定源码没有提供可确认的 primary/detail/hint 模板,本页也没有声称运行时观察。

诊断 {#diagnosis}

保留 provider 返回的完整诊断:primary、detail、hint、severity、SQLSTATE、服务器版本、连接状态及服务器日志关联。依据实际消息和周边日志判断具体路径。不能只凭类别名推断为管理员 shutdown、语句取消、锁超时或启动拒绝;这些路径有各自的条件码和源码。

处理 {#response}

遵循实际响应携带的操作员或扩展指示。若 session 仍可用,先处理消息指出的干预,并检查是否处于显式事务;若 severity 为 ERROR,应按情况执行 ROLLBACK 或 ROLLBACK TO SAVEPOINT 后再继续。autocommit 下先修正原因再重试。若连接已终止,确认服务器 ready 后重连,并在重放非幂等操作前核对业务结果。有界扫描不支持更具体的修复建议。

版本 {#versions}

锁定目录从 7.4 记录此条件;该目录边界不等于精确实现引入版本。固定源码覆盖 PostgreSQL 18.6,另有有界报告/调用扫描。

相关 {#related}

55P03、57P01、57014

来源 {#sources}

src/backend/utils/errcodes.txt#L433

结构化证据记录保存固定定义、有界扫描原件及源码/运行范围。

比较版本

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

claims · identity
{
  "claim_id": "identity",
  "limits": "",
  "method": "Read fixed definition.",
  "position": 0,
  "runtime": [],
  "sources": [
    "src.errcodes.18.6"
  ],
  "statement": "57000 is operator_intervention in SQLSTATE Class 57."
}
claims · scan-boundary
{
  "claim_id": "scan-boundary",
  "limits": "This does not prove that no extension, future path, or unresolved call can emit the condition.",
  "method": "Read the fixed definition and the bounded REL_18_6 report/call scan.",
  "position": 1,
  "runtime": [],
  "sources": [
    "src.errcodes.18.6",
    "scan.calls.REL_18_6"
  ],
  "statement": "The bounded PostgreSQL 18.6 source scan did not resolve a fixed core emitting path for this condition."
}
claims · history
{
  "claim_id": "history",
  "limits": "",
  "method": "Use catalogue boundary.",
  "position": 2,
  "runtime": [],
  "sources": [
    "src.errcodes.18.6"
  ],
  "statement": "The locked catalogue records 57000 from 7.4; that boundary does not prove exact implementation introduction."
}
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#L433"
}
sources · scan.calls.REL_18_6
{
  "commit": "",
  "docs_url": "",
  "kind": "local_artifact",
  "location": "",
  "path": "raw/calls/REL_18_6.jsonl",
  "position": 1,
  "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf",
  "source_id": "scan.calls.REL_18_6",
  "tag": "",
  "url": ""
}

来源引用

完整定义与证据 JSON

定义来源

center · PostgreSQL 18 · english-manuals:2fb22447e2163200c6e42517023b25451f5d29c4f8971ed725e822ba706bf9ca

正文语言: zh-Hans · english-manuals:2fb22447e2163200c6e42517023b25451f5d29c4f8971ed725e822ba706bf9ca