{
  "schema": 1,
  "sqlstate": "53200",
  "condition_name": "out_of_memory",
  "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#L409",
      "lines": "409"
    },
    {
      "id": "src.path.0",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "contrib/pg_stat_statements/pg_stat_statements.c",
      "sha256": "5a732a7c5b124ba98f2e3939c2458b85757c49fdb7846276f6b96ceeb833e74b",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/pg_stat_statements/pg_stat_statements.c#L2346",
      "lines": "2346-2350"
    },
    {
      "id": "src.path.1",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "contrib/pg_walinspect/pg_walinspect.c",
      "sha256": "bd6adbfd21eb9287d9e2d18ca19028d75ad00f8543256c80071e0c357e703b9e",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/pg_walinspect/pg_walinspect.c#L121",
      "lines": "121-124"
    },
    {
      "id": "src.path.2",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/access/transam/twophase.c",
      "sha256": "52e4fc67a5c3555ca8c1f75f5e12306a93bae17ecb49fd6ef6c5136ddc0db96a",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/transam/twophase.c#L1417",
      "lines": "1417-1420"
    },
    {
      "id": "src.path.3",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/utils/mmgr/aset.c",
      "sha256": "ae1f091f78f913a224c3659abc0e7798603dff348fe21d23d44a8789c5fd3098",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/mmgr/aset.c#L444",
      "lines": "444-453"
    },
    {
      "id": "src.path.4",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/utils/mmgr/mcxt.c",
      "sha256": "19824d40a1b2b7f533fd7863c91117a33c0879bf776fc7fbe495f603e032344e",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/mmgr/mcxt.c#L1157",
      "lines": "1157-1167"
    },
    {
      "id": "src.path.5",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/storage/ipc/shmem.c",
      "sha256": "27ee1cdd55975fbe57607d2236d117ab50d8135cca5622af6f03ccd768bb5680",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/ipc/shmem.c#L151",
      "lines": "151-162"
    },
    {
      "id": "src.path.6",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/storage/lmgr/lock.c",
      "sha256": "e7f43560bf6a8417ff46991238084b6edeb44a995b87670ed1f7fa6f1515276b",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/lmgr/lock.c#L2957",
      "lines": "2957-2969"
    },
    {
      "id": "src.calls.REL_18_6",
      "kind": "local_artifact",
      "source_role": "source_call_scan",
      "tag": "REL_18_6",
      "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
    }
  ],
  "claims": [
    {
      "id": "identity",
      "statement": "53200 is out_of_memory in SQLSTATE Class 53.",
      "sources": [
        "src.errcodes.18.6"
      ],
      "method": "Read fixed definition."
    },
    {
      "id": "resolved-paths",
      "statement": "The cited PostgreSQL 18.6 source paths support the representative resource and object-state mechanisms described.",
      "sources": [
        "src.path.0",
        "src.path.1",
        "src.path.2",
        "src.path.3",
        "src.path.4",
        "src.path.5",
        "src.path.6"
      ],
      "method": "Read complete fixed source contexts.",
      "limits": "Source confirmation is not natural runtime."
    },
    {
      "id": "allocator-and-capacity",
      "statement": "Core memory-context allocation uses 53200 for allocator failure, shared-memory allocation uses an out-of-shared-memory primary, and lock-table exhaustion can add a max_locks_per_transaction hint; these contexts are distinct from extension file/WAL allocation details.",
      "sources": [
        "src.path.3",
        "src.path.4",
        "src.path.5",
        "src.path.6"
      ],
      "method": "Read the complete fixed allocator, shared-memory, and lock-table guards."
    },
    {
      "id": "message-roles",
      "statement": "The source report groups keep out of memory as the primary and the operation-specific allocation text as DETAIL; the pg_stat_statements group is LOG while the WAL reader groups are ERROR.",
      "sources": [
        "src.calls.REL_18_6"
      ],
      "method": "Read fixed report groups and complete source contexts."
    },
    {
      "id": "history",
      "statement": "The locked catalogue records 53200 from 7.4; that boundary does not prove exact implementation introduction.",
      "sources": [
        "src.errcodes.18.6"
      ],
      "method": "Use catalogue boundary."
    }
  ],
  "messages": [
    {
      "id": "message.0",
      "sqlstate": "53200",
      "primary_template": "out of memory",
      "severity_source": "LOG",
      "detail_template": "Could not allocate enough memory to read file \"%s\".",
      "sources": [
        "src.path.0"
      ]
    },
    {
      "id": "message.1",
      "sqlstate": "53200",
      "primary_template": "out of memory",
      "severity_source": "ERROR",
      "detail_template": "Failed while allocating a WAL reading processor.",
      "sources": [
        "src.path.1"
      ]
    },
    {
      "id": "message.2",
      "sqlstate": "53200",
      "primary_template": "out of memory",
      "severity_source": "ERROR",
      "detail_template": "Failed while allocating a WAL reading processor.",
      "sources": [
        "src.path.2"
      ]
    },
    {
      "id": "message.3",
      "sqlstate": "53200",
      "primary_template": "out of memory",
      "severity_source": "ERROR",
      "detail_template": "Failed while creating memory context \"%s\".",
      "sources": [
        "src.path.3"
      ]
    },
    {
      "id": "message.4",
      "sqlstate": "53200",
      "primary_template": "out of memory",
      "severity_source": "ERROR",
      "detail_template": "Failed on request of size %zu in memory context \"%s\".",
      "sources": [
        "src.path.4"
      ]
    },
    {
      "id": "message.5",
      "sqlstate": "53200",
      "primary_template": "out of shared memory (%zu bytes requested)",
      "severity_source": "ERROR",
      "sources": [
        "src.path.5"
      ]
    },
    {
      "id": "message.6",
      "sqlstate": "53200",
      "primary_template": "out of shared memory",
      "severity_source": "ERROR",
      "hint_template": "You might need to increase \"max_locks_per_transaction\".",
      "sources": [
        "src.path.6"
      ]
    }
  ],
  "usage_evidence": [
    {
      "scope": "definition",
      "status": "definition_only",
      "evidence_ids": [
        "identity"
      ]
    },
    {
      "scope": "fixed-source-path",
      "status": "source_path_confirmed",
      "evidence_ids": [
        "resolved-paths",
        "allocator-and-capacity",
        "message-roles"
      ]
    },
    {
      "scope": "history",
      "status": "unknown",
      "evidence_ids": [
        "history"
      ]
    },
    {
      "scope": "natural-runtime",
      "status": "unknown",
      "evidence_ids": [
        "resolved-paths"
      ]
    }
  ],
  "runtime": []
}
