{
  "schema": 1,
  "sqlstate": "22015",
  "condition_name": "interval_field_overflow",
  "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#L185",
      "lines": "185"
    },
    {
      "id": "src.interval-input.18.6",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/utils/adt/timestamp.c",
      "sha256": "2614ccd2182fa904b4cac9bef43039e90a1af578d2d1c6803d49a07420d168f2",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/timestamp.c#L884-967",
      "lines": "884-967"
    },
    {
      "id": "src.datetime-errors.18.6",
      "kind": "upstream_source",
      "source_role": "error_mapping",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/utils/adt/datetime.c",
      "sha256": "709e05b536f611f7eeaaabb716501d59d4d1e87c53757e15240fe1fc4845459c",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/datetime.c#L4195-4266",
      "lines": "4195-4266"
    }
  ],
  "claims": [
    {
      "id": "identity",
      "statement": "22015 is interval_field_overflow in SQLSTATE Class 22.",
      "sources": [
        "src.errcodes.18.6"
      ],
      "method": "Read the fixed errcodes row and macro."
    },
    {
      "id": "interval-input-path",
      "statement": "interval_in maps a datetime field-overflow decode result to DTERR_INTERVAL_OVERFLOW before DateTimeParseError reports the interval-field primary; later itmin2interval range failure is a separate 22008 branch.",
      "sources": [
        "src.interval-input.18.6",
        "src.datetime-errors.18.6"
      ],
      "method": "Read interval_in, the remap, and the DateTimeParseError switch.",
      "limits": "This is the interval input decoding path, not every interval arithmetic overflow."
    },
    {
      "id": "soft-error-path",
      "statement": "DateTimeParseError fills ErrorSaveContext through errsave instead of throwing when a soft error context is supplied; ordinary callers receive ERROR.",
      "sources": [
        "src.datetime-errors.18.6"
      ],
      "method": "Read the ErrorSaveContext comment and errsave branch."
    },
    {
      "id": "history",
      "statement": "The locked catalogue records 22015 from 7.4 without proving an exact implementation introduction date.",
      "sources": [
        "src.errcodes.18.6"
      ],
      "method": "Use catalogue presence and history boundaries."
    }
  ],
  "messages": [
    {
      "id": "message.interval-field-overflow",
      "sqlstate": "22015",
      "primary_template": "interval field value out of range: \"%s\"",
      "severity_source": "ERROR (ordinary context; errsave soft path when escontext supplied)",
      "sources": [
        "src.datetime-errors.18.6"
      ]
    }
  ],
  "usage_evidence": [
    {
      "scope": "definition",
      "status": "definition_only",
      "evidence_ids": [
        "identity"
      ]
    },
    {
      "scope": "fixed-source-path",
      "status": "source_path_confirmed",
      "evidence_ids": [
        "interval-input-path",
        "soft-error-path"
      ]
    },
    {
      "scope": "history",
      "status": "unknown",
      "evidence_ids": [
        "history"
      ]
    },
    {
      "scope": "natural-runtime",
      "status": "unknown",
      "evidence_ids": [
        "interval-input-path"
      ]
    }
  ],
  "runtime": []
}
