{
  "schema": 1,
  "sqlstate": "54011",
  "condition_name": "too_many_columns",
  "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#L418",
      "lines": "418"
    },
    {
      "id": "src.path.0",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/access/common/heaptuple.c",
      "sha256": "3553582c4af3631b8b901c514fe3fed828daa376c374634e5773b1b177befd0b",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/common/heaptuple.c#L1131",
      "lines": "1131-1134"
    },
    {
      "id": "src.path.1",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/access/common/indextuple.c",
      "sha256": "47ce16ef7099b6d1de759f9605bcc50d128e1b342d8b70625553f29bca4ade00",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/common/indextuple.c#L87",
      "lines": "87-90"
    },
    {
      "id": "src.path.2",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/catalog/heap.c",
      "sha256": "e720ee58279590793edd0985b3c910970ef56e7361b8ef92e245370587e02a0e",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/heap.c#L461",
      "lines": "461-464"
    },
    {
      "id": "src.path.3",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/commands/tablecmds.c",
      "sha256": "422dc8e833df4940755973c757e338295822ba3e4c7266c40669f49f96eb15a9",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L2567",
      "lines": "2567-2582"
    },
    {
      "id": "src.path.4",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/commands/indexcmds.c",
      "sha256": "0bdae365f207ab82865806c5983cac94c5c062e7a61ab7c883ccb7e2015fad36",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/indexcmds.c#L640",
      "lines": "640-664"
    },
    {
      "id": "src.path.5",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/commands/statscmds.c",
      "sha256": "3cbdc9bfd55c98d0c7543af9d366b8e76d5d3b49661f5634ee5f71bedd2aacdb",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/statscmds.c#L215",
      "lines": "215-224"
    },
    {
      "id": "src.path.6",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/parser/parse_relation.c",
      "sha256": "0d9c88f4a8def4c2d982c33f13208590e21ecf5e6f8cd9d7faa223dc771c9a9a",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_relation.c#L1935",
      "lines": "1935-1946"
    },
    {
      "id": "src.path.7",
      "kind": "upstream_source",
      "source_role": "limit_definition",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/include/access/htup_details.h",
      "sha256": "175dad20a31eea61d724bf2954457dc09d4635e552ba63b2ac1cf1c9508c0626",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/access/htup_details.h#L34",
      "lines": "34-48"
    },
    {
      "id": "src.path.8",
      "kind": "upstream_source",
      "source_role": "limit_definition",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/include/pg_config_manual.h",
      "sha256": "3b513dda5408337ef7c31bca491844650b4ea2cdb1b688d6b99ab74ba3f06700",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/pg_config_manual.h#L63",
      "lines": "63-74"
    },
    {
      "id": "src.path.9",
      "kind": "upstream_source",
      "source_role": "limit_definition",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/include/statistics/statistics.h",
      "sha256": "6106a336fc725ca5a984e78b1c2e54aa5ee7aed130f3b005bebff35c07eadc5b",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/statistics/statistics.h#L19",
      "lines": "19"
    }
  ],
  "claims": [
    {
      "id": "identity",
      "statement": "54011 is too_many_columns in SQLSTATE Class 54.",
      "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",
        "src.path.7",
        "src.path.8",
        "src.path.9"
      ],
      "method": "Read complete fixed source contexts.",
      "limits": "Source confirmation is not natural runtime."
    },
    {
      "id": "physical-and-object-limits",
      "statement": "The table guard counts physical attributes including inherited columns, while index, partition, statistics, and function-row definitions use separate fixed arrays or dimensions.",
      "sources": [
        "src.path.3",
        "src.path.4",
        "src.path.5",
        "src.path.6"
      ],
      "method": "Read the complete DDL and parser guards."
    },
    {
      "id": "fixed-numeric-limits",
      "statement": "The fixed 18.6 limit definitions are 1600 user table attributes, 1664 tuple attributes, 32 index keys, 32 partition-key columns, and 8 extended-statistics dimensions; these values belong to different object paths.",
      "sources": [
        "src.path.7",
        "src.path.8",
        "src.path.9"
      ],
      "method": "Read the fixed macro definitions used by the guards.",
      "limits": "The numeric values are for the locked 18.6 source and do not replace the actual count and limit fields in a future server's diagnostic."
    },
    {
      "id": "history",
      "statement": "The locked catalogue records 54011 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": "54011",
      "primary_template": "number of columns (%d) exceeds limit (%d)",
      "severity_source": "ERROR",
      "sources": [
        "src.path.0"
      ]
    },
    {
      "id": "message.1",
      "sqlstate": "54011",
      "primary_template": "number of index columns (%d) exceeds limit (%d)",
      "severity_source": "ERROR",
      "sources": [
        "src.path.1"
      ]
    },
    {
      "id": "message.2",
      "sqlstate": "54011",
      "primary_template": "tables can have at most %d columns",
      "severity_source": "ERROR",
      "sources": [
        "src.path.2"
      ]
    },
    {
      "id": "message.3",
      "sqlstate": "54011",
      "primary_template": "cannot partition using more than %d columns",
      "severity_source": "ERROR",
      "sources": [
        "src.path.3"
      ]
    },
    {
      "id": "message.4",
      "sqlstate": "54011",
      "primary_template": "cannot use more than %d columns in an index",
      "severity_source": "ERROR",
      "sources": [
        "src.path.4"
      ]
    },
    {
      "id": "message.5",
      "sqlstate": "54011",
      "primary_template": "cannot have more than %d columns in statistics",
      "severity_source": "ERROR",
      "sources": [
        "src.path.5"
      ]
    },
    {
      "id": "message.6",
      "sqlstate": "54011",
      "primary_template": "column definition lists can have at most %d entries",
      "severity_source": "ERROR",
      "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",
        "physical-and-object-limits",
        "fixed-numeric-limits"
      ]
    },
    {
      "scope": "history",
      "status": "unknown",
      "evidence_ids": [
        "history"
      ]
    },
    {
      "scope": "natural-runtime",
      "status": "unknown",
      "evidence_ids": [
        "resolved-paths"
      ]
    }
  ],
  "runtime": []
}
