{
  "schema": 1,
  "sqlstate": "54023",
  "condition_name": "too_many_arguments",
  "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#L419",
      "lines": "419"
    },
    {
      "id": "src.path.0",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/catalog/pg_proc.c",
      "sha256": "77a883995e5fadf17fae68722043beb43115e685e8082b2b7256d92312528a5a",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/pg_proc.c#L156",
      "lines": "156-161"
    },
    {
      "id": "src.path.1",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/commands/functioncmds.c",
      "sha256": "33de4dd569d9b8b93ca3efbba4b31726af79f2864110454a7d7cdf286b3647aa",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/functioncmds.c#L2261",
      "lines": "2261-2266"
    },
    {
      "id": "src.path.2",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/executor/execExpr.c",
      "sha256": "9bc3aa2562686b1860005137de9611e56ff6b41eaf9b3eefd9c3f058dc057431",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/execExpr.c#L2727",
      "lines": "2727-2732"
    },
    {
      "id": "src.path.3",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/executor/execSRF.c",
      "sha256": "5c6038cbcc254113a39119af636331063b11d75ad7757b027620d78ed1ecdf2a",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/execSRF.c#L716",
      "lines": "716-721"
    },
    {
      "id": "src.path.4",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "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#L31",
      "lines": "31-43"
    },
    {
      "id": "src.path.5",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/catalog/pg_aggregate.c",
      "sha256": "75c08cdd82917e45647f7c523c9ad8fb49423c89f13e26754be1e37e4c6a49b4",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/pg_aggregate.c#L121",
      "lines": "121-132"
    },
    {
      "id": "src.path.6",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/parser/parse_func.c",
      "sha256": "48314eab022297478ac4e49786afaff2621ab7b1d7b50e156668cf477961384f",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_func.c#L129",
      "lines": "129-142"
    },
    {
      "id": "src.path.7",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/executor/nodeWindowAgg.c",
      "sha256": "c365e6750bc77a89562254903d099c3e5914e001d3aae418322ccffc1d535d17",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/nodeWindowAgg.c#L1042",
      "lines": "1042-1054"
    },
    {
      "id": "src.calls.REL_18_6",
      "kind": "local_artifact",
      "source_role": "source_call_scan",
      "tag": "REL_18_6",
      "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
    }
  ],
  "claims": [
    {
      "id": "identity",
      "statement": "54023 is too_many_arguments 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"
      ],
      "method": "Read complete fixed source contexts.",
      "limits": "Source confirmation is not natural runtime."
    },
    {
      "id": "compile-time-limit",
      "statement": "FUNC_MAX_ARGS is a compile-time constant of 100 in the fixed PG18.6 header; aggregate definitions/calls use one fewer argument, and parser/executor guards protect calls including stored expressions.",
      "sources": [
        "src.path.4",
        "src.path.5",
        "src.path.6",
        "src.path.7"
      ],
      "method": "Read the fixed macro, aggregate, parser, and executor guards."
    },
    {
      "id": "raw-message-roles",
      "statement": "The fixed report groups use errmsg_plural with singular and plural format_raw strings and pass FUNC_MAX_ARGS (or FUNC_MAX_ARGS - 1 for aggregates); the scan preserves the macro call rather than only a flattened message.",
      "sources": [
        "src.calls.REL_18_6"
      ],
      "method": "Read source-call report groups alongside complete fixed files."
    },
    {
      "id": "history",
      "statement": "The locked catalogue records 54023 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": "54023",
      "primary_template_singular": "functions cannot have more than %d argument",
      "primary_template_plural": "functions cannot have more than %d arguments",
      "severity_source": "ERROR",
      "template_type": "plural",
      "sources": [
        "src.path.0"
      ]
    },
    {
      "id": "message.1",
      "sqlstate": "54023",
      "primary_template_singular": "cannot pass more than %d argument to a procedure",
      "primary_template_plural": "cannot pass more than %d arguments to a procedure",
      "severity_source": "ERROR",
      "template_type": "plural",
      "sources": [
        "src.path.1"
      ]
    },
    {
      "id": "message.2",
      "sqlstate": "54023",
      "primary_template_singular": "cannot pass more than %d argument to a function",
      "primary_template_plural": "cannot pass more than %d arguments to a function",
      "severity_source": "ERROR",
      "template_type": "plural",
      "sources": [
        "src.path.2"
      ]
    },
    {
      "id": "message.3",
      "sqlstate": "54023",
      "primary_template_singular": "cannot pass more than %d argument to a function",
      "primary_template_plural": "cannot pass more than %d arguments to a function",
      "severity_source": "ERROR",
      "template_type": "plural",
      "sources": [
        "src.path.3"
      ]
    },
    {
      "id": "message.4",
      "sqlstate": "54023",
      "primary_template_singular": "aggregates cannot have more than %d argument",
      "primary_template_plural": "aggregates cannot have more than %d arguments",
      "severity_source": "ERROR",
      "template_type": "plural",
      "sources": [
        "src.path.5"
      ]
    },
    {
      "id": "message.5",
      "sqlstate": "54023",
      "primary_template_singular": "cannot pass more than %d argument to a function",
      "primary_template_plural": "cannot pass more than %d arguments to a function",
      "severity_source": "ERROR",
      "template_type": "plural",
      "sources": [
        "src.path.7"
      ]
    }
  ],
  "usage_evidence": [
    {
      "scope": "definition",
      "status": "definition_only",
      "evidence_ids": [
        "identity"
      ]
    },
    {
      "scope": "fixed-source-path",
      "status": "source_path_confirmed",
      "evidence_ids": [
        "resolved-paths",
        "compile-time-limit",
        "raw-message-roles"
      ]
    },
    {
      "scope": "history",
      "status": "unknown",
      "evidence_ids": [
        "history"
      ]
    },
    {
      "scope": "natural-runtime",
      "status": "unknown",
      "evidence_ids": [
        "resolved-paths"
      ]
    }
  ],
  "runtime": []
}
