{
  "schema": 1,
  "sqlstate": "HV002",
  "condition_name": "fdw_dynamic_parameter_value_needed",
  "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"
    },
    {
      "id": "src.file_fdw.18.6",
      "kind": "upstream_source",
      "source_role": "wrapper_validator",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "contrib/file_fdw/file_fdw.c",
      "sha256": "d79ec21c08be6a806b0710aab09698678ddb24103d3470702e66ee1523432125",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/file_fdw/file_fdw.c"
    },
    {
      "id": "src.file_fdw.9.1.24",
      "kind": "upstream_source",
      "source_role": "historical_wrapper_source",
      "tag": "REL9_1_24",
      "commit": "e85493559c4678f54d30b6b4e04b17c03a3192d7",
      "path": "contrib/file_fdw/file_fdw.c",
      "sha256": "6f948ed8f9ffa6d1077b289f23c53eff02c5182492f0827b908c2be86026dad8",
      "url": "https://github.com/postgres/postgres/blob/e85493559c4678f54d30b6b4e04b17c03a3192d7/contrib/file_fdw/file_fdw.c"
    },
    {
      "id": "src.calls.REL_18_6",
      "kind": "local_artifact",
      "source_role": "source_call_scan",
      "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
    }
  ],
  "claims": [
    {
      "id": "identity",
      "statement": "HV002 is fdw_dynamic_parameter_value_needed in Class HV.",
      "sources": [
        "src.errcodes.18.6"
      ],
      "method": "Read the fixed definition row."
    },
    {
      "id": "file-fdw-validator",
      "statement": "file_fdw raises HV002 when neither filename nor program is supplied for a foreign table.",
      "sources": [
        "src.file_fdw.18.6"
      ],
      "method": "Read file_fdw.c:345-350.",
      "limits": "This is one bundled implementation; other wrappers can use the condition for different required parameters."
    },
    {
      "id": "historical-message",
      "statement": "The fixed 18.6 file_fdw source uses the filename-or-program message, while the fixed 9.1.24 source uses the filename-only wording.",
      "sources": [
        "src.file_fdw.18.6",
        "src.file_fdw.9.1.24"
      ],
      "method": "Read both fixed wrapper source files and compare the validator report templates.",
      "limits": "These are two fixed wrapper snapshots; this does not claim the exact transition release or behavior of other wrappers."
    }
  ],
  "messages": [
    {
      "id": "file-fdw-required-source",
      "sqlstate": "HV002",
      "severity": "ERROR",
      "source_ids": [
        "src.file_fdw.18.6"
      ],
      "path": "contrib/file_fdw/file_fdw.c:349-350",
      "message": "either filename or program is required for file_fdw foreign tables"
    },
    {
      "id": "file-fdw-required-source-9.1.24",
      "sqlstate": "HV002",
      "severity": "ERROR",
      "source_ids": [
        "src.file_fdw.9.1.24"
      ],
      "path": "contrib/file_fdw/file_fdw.c:222-224",
      "message": "filename is required for file_fdw foreign tables"
    }
  ],
  "usage_evidence": [
    {
      "scope": "file_fdw-option-validation",
      "status": "source_path_confirmed",
      "evidence_ids": [
        "file-fdw-validator",
        "file-fdw-required-source"
      ]
    },
    {
      "scope": "natural-runtime",
      "status": "unknown",
      "evidence_ids": [
        "file-fdw-validator"
      ]
    }
  ],
  "runtime": []
}
