{
  "schema": 1,
  "sqlstate": "22P01",
  "condition_name": "floating_point_exception",
  "sources": [
    {
      "id": "src.errcodes.18.6",
      "kind": "upstream_source",
      "source_role": "condition_definition",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/utils/errcodes.txt",
      "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L205",
      "lines": "205"
    },
    {
      "id": "src.path.handler",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/tcop/postgres.c",
      "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L3072",
      "lines": "3072-3082"
    },
    {
      "id": "src.path.registration",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/tcop/postgres.c",
      "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L4245",
      "lines": "4245-4249"
    }
  ],
  "claims": [
    {
      "id": "identity",
      "statement": "22P01 is floating_point_exception in SQLSTATE Class 22.",
      "sources": [
        "src.errcodes.18.6"
      ],
      "method": "Read fixed definition."
    },
    {
      "id": "signal-handler",
      "statement": "FloatExceptionHandler is the backend SIGFPE handler. It emits ERROR 22P01 with primary floating-point exception and detail about an invalid floating-point operation, an out-of-range result, or an invalid operation such as division by zero.",
      "sources": [
        "src.path.handler",
        "src.path.registration"
      ],
      "method": "Read the complete handler and the PostgresMain SIGFPE registration.",
      "limits": "The source confirms the handler and message; it does not show a natural SIGFPE runtime in this review."
    },
    {
      "id": "numeric-boundary",
      "statement": "The handler is distinct from type-specific exact-numeric errors such as division-by-zero 22012 and numeric range 22003.",
      "sources": [
        "src.path.handler"
      ],
      "method": "Compare the fixed handler with the condition-specific source boundary named in the page.",
      "limits": "Related-code distinctions are diagnostic guidance, not a claim that every arithmetic operator chooses one code."
    },
    {
      "id": "history",
      "statement": "The locked catalogue records 22P01 from 7.4; that boundary does not prove exact implementation introduction.",
      "sources": [
        "src.errcodes.18.6"
      ],
      "method": "Use catalogue boundary."
    }
  ],
  "messages": [
    {
      "id": "message.handler",
      "sqlstate": "22P01",
      "primary_template": "floating-point exception",
      "severity_source": "ERROR",
      "sources": [
        "src.path.handler"
      ],
      "detail_template": "An invalid floating-point operation was signaled. This probably means an out-of-range result or an invalid operation, such as division by zero."
    }
  ],
  "usage_evidence": [
    {
      "scope": "definition",
      "status": "definition_only",
      "evidence_ids": [
        "identity"
      ]
    },
    {
      "scope": "fixed-source-path",
      "status": "source_path_confirmed",
      "evidence_ids": [
        "signal-handler"
      ]
    },
    {
      "scope": "history",
      "status": "unknown",
      "evidence_ids": [
        "history"
      ]
    },
    {
      "scope": "natural-runtime",
      "status": "unknown",
      "evidence_ids": [
        "signal-handler"
      ]
    }
  ],
  "runtime": []
}
