P0000 — plpgsql_error
PL/pgSQL 错误的类别项,核心未见直接调用。
英文手册覆盖始于 PostgreSQL 8.1. 来源历史与运行验证各自保留独立版本边界。
当前阅读 PG 18·选择有来源记录的版本
- aliases
- 未知
- class name
- PL/pgSQL Error
- condition name
- plpgsql_error
- lang
- en
- sqlstate
- P0000
版本定义 PG 18
P0000
速览 {#at-a-glance}
P0000 是 PostgreSQL 专用 plpgsql_error 类别项。固定 18.6 调用归档没有解析出该类别码本身的报告路径,因此不能把成员码的行为倒推成 P0000 发出的错误。
含义 {#meaning}
它表示 PL/pgSQL Error 类别的目录身份。实际执行路径可能选择更具体的成员 SQLSTATE,例如 P0002、P0003 或 P0004;类别定义和成员实现不能互相替代。
诊断 {#diagnosis}
以客户端或日志中实际收到的 SQLSTATE 为准,再按该码检查 PL/pgSQL 的执行上下文。若只知道错误来自 PL/pgSQL 而没有 SQLSTATE,应保留完整诊断字段,并检查部署版本和自定义代码,而不是直接归类为 P0000。
处置 {#response}
根据实际成员码修正对应的 PL/pgSQL 语句、函数契约或异常处理。只有定义层面的 P0000 信息时,无法给出更窄的 SQL 操作建议;应继续定位实际报告路径。
版本 {#versions}
锁定目录从 8.0.0 记录该类别项,并在列出的正式快照及 19beta3 中出现;有界源码扫描未确认其自然报告路径。
相关条件 {#related}
来源 {#sources}
详见结构化的证据记录,其中列出固定源码链接、消息模板与范围限制。
比较版本
SQLSTATE 证据与已记录的运行版本
claims · identity
{
"claim_id": "identity",
"limits": "",
"method": "Read the fixed category row and macro.",
"position": 0,
"runtime": [],
"sources": [
"src.errcodes.18.6"
],
"statement": "P0000 is plpgsql_error, the PostgreSQL-specific PL/pgSQL Error category entry."
}claims · bounded-scan
{
"claim_id": "bounded-scan",
"limits": "A category definition does not imply that executor paths emit the category code itself.",
"method": "Filter the archive by exact code and do not promote member-code reports to a category emitter.",
"position": 1,
"runtime": [],
"sources": [
"src.calls.REL_18_6"
],
"statement": "The fixed REL_18_6 call archive has no resolved report group for the P0000 category code."
}claims · member-boundary
{
"claim_id": "member-boundary",
"limits": "",
"method": "Compare the category row with member definitions.",
"position": 2,
"runtime": [],
"sources": [
"src.errcodes.18.6"
],
"statement": "Specific PL/pgSQL conditions such as P0002, P0003, and P0004 have their own report paths and should be diagnosed by their actual SQLSTATE."
}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#L490"
}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:70f4b0f81adf8d60b53596e32a0efa3b9cba01bdc5edcda455571b8f623a9fb3
正文语言: zh-Hans · english-manuals:70f4b0f81adf8d60b53596e32a0efa3b9cba01bdc5edcda455571b8f623a9fb3