{
  "schema": 1,
  "sqlstate": "22023",
  "condition_name": "invalid_parameter_value",
  "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.amcheck",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "contrib/amcheck/verify_heapam.c",
      "sha256": "54f1452790c2f2ecca059f38221a422a91ef5d35a436e48b1b12ba393a5881eb",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/amcheck/verify_heapam.c#L271",
      "lines": "271-303"
    },
    {
      "id": "src.postgres_fdw",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "contrib/postgres_fdw/option.c",
      "sha256": "880fd16c3e5cbc56733d1292ffdcc9b0f6cb1e17e72c90e9afa4e359239dc314",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/postgres_fdw/option.c#L149",
      "lines": "149-185"
    },
    {
      "id": "src.regexp.options",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/utils/adt/regexp.c",
      "sha256": "8c54fe9e937ce03111b39da7bca89b22d6cb2de6b9ce5f7caf90c76bc7218e0e",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/regexp.c#L443",
      "lines": "443-446"
    },
    {
      "id": "src.guc.parse",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/utils/misc/guc.c",
      "sha256": "3021d40bb4e920a56fbc5e9452e32903a7364d7ce0aece65be70aa3c34c1274e",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc.c#L3129",
      "lines": "3129-3320"
    },
    {
      "id": "src.guc.hooks",
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/utils/misc/guc.c",
      "sha256": "3021d40bb4e920a56fbc5e9452e32903a7364d7ce0aece65be70aa3c34c1274e",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc.c#L6804",
      "lines": "6804-6990"
    },
    {
      "id": "snippet-registry.22023",
      "kind": "local_artifact",
      "source_role": "runtime_input",
      "sha256": "b353a8e7365013a0c5bd27aea71353f81ad125465c825df557bb8e122ddf49ac"
    },
    {
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/utils/misc/guc.c",
      "sha256": "3021d40bb4e920a56fbc5e9452e32903a7364d7ce0aece65be70aa3c34c1274e",
      "id": "src.guc.units",
      "lines": "87-181",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc.c#L87"
    },
    {
      "kind": "upstream_source",
      "source_role": "resolved_report_context",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/utils/misc/guc.c",
      "sha256": "3021d40bb4e920a56fbc5e9452e32903a7364d7ce0aece65be70aa3c34c1274e",
      "id": "src.guc.context",
      "lines": "3342-3430",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc.c#L3342"
    }
  ],
  "claims": [
    {
      "id": "identity",
      "statement": "22023 is invalid_parameter_value in SQLSTATE Class 22",
      "sources": [
        "src.errcodes.18.6"
      ],
      "method": "Read the fixed errcodes row and macro."
    },
    {
      "id": "resolved-path",
      "statement": "Fixed PostgreSQL 18.6 representatives bind owner-specific NULL/option/range checks and built-in GUC parse/range/unit/context/check-hook paths.",
      "sources": [
        "src.amcheck",
        "src.postgres_fdw",
        "src.regexp.options",
        "src.guc.parse",
        "src.guc.hooks",
        "src.guc.units",
        "src.guc.context"
      ],
      "method": "Read complete source contexts for the representative guards.",
      "limits": "Source confirmation is not a natural runtime observation."
    },
    {
      "id": "history",
      "statement": "The locked catalogue records 22023 from 7.4 without proving an exact implementation introduction date.",
      "sources": [
        "src.errcodes.18.6"
      ],
      "method": "Use catalogue presence and history boundaries."
    },
    {
      "id": "runtime.observation",
      "statement": "The retained invalid_work_mem_parameter case passed on PostgreSQL 18.6 and 10.21 with the observed message and repair described on the page.",
      "sources": [
        "runtime.22023-work-mem-latest.latest",
        "runtime.22023-work-mem-pg10.pg10",
        "snippet-registry.22023"
      ],
      "method": "Read both retained summaries, raw digests, and the fixed snippet registry.",
      "limits": "The observation covers the named GUC case and does not generalize to every 22023 owner."
    }
  ],
  "messages": [
    {
      "id": "message.0",
      "sqlstate": "22023",
      "primary_template": "relation cannot be null",
      "severity_source": "ERROR",
      "sources": [
        "src.amcheck"
      ]
    },
    {
      "id": "message.1",
      "sqlstate": "22023",
      "primary_template": "on_error_stop cannot be null",
      "severity_source": "ERROR",
      "sources": [
        "src.amcheck"
      ]
    },
    {
      "id": "message.2",
      "sqlstate": "22023",
      "primary_template": "check_toast cannot be null",
      "severity_source": "ERROR",
      "sources": [
        "src.amcheck"
      ]
    },
    {
      "id": "message.3",
      "sqlstate": "22023",
      "primary_template": "skip cannot be null",
      "severity_source": "ERROR",
      "sources": [
        "src.amcheck"
      ]
    },
    {
      "id": "message.4",
      "sqlstate": "22023",
      "primary_template": "invalid skip option",
      "severity_source": "ERROR",
      "hint_template": "Valid skip options are \"all-visible\", \"all-frozen\", and \"none\".",
      "sources": [
        "src.amcheck"
      ]
    },
    {
      "id": "message.5",
      "sqlstate": "22023",
      "primary_template": "invalid value for floating point option \"%s\": %s",
      "severity_source": "ERROR",
      "sources": [
        "src.postgres_fdw"
      ]
    },
    {
      "id": "message.6",
      "sqlstate": "22023",
      "primary_template": "\"%s\" must be a floating point value greater than or equal to zero",
      "severity_source": "ERROR",
      "sources": [
        "src.postgres_fdw"
      ]
    },
    {
      "id": "message.7",
      "sqlstate": "22023",
      "primary_template": "invalid value for integer option \"%s\": %s",
      "severity_source": "ERROR",
      "sources": [
        "src.postgres_fdw"
      ]
    },
    {
      "id": "message.8",
      "sqlstate": "22023",
      "primary_template": "\"%s\" must be an integer value greater than zero",
      "severity_source": "ERROR",
      "sources": [
        "src.postgres_fdw"
      ]
    },
    {
      "id": "message.9",
      "sqlstate": "22023",
      "primary_template": "invalid regular expression option: \"%.*s\"",
      "severity_source": "ERROR",
      "sources": [
        "src.regexp.options"
      ]
    },
    {
      "id": "message.guc-bool",
      "primary_template": "parameter \"%s\" requires a Boolean value",
      "severity_source": "ERROR",
      "sources": [
        "src.guc.parse"
      ],
      "sqlstate": "22023"
    },
    {
      "id": "message.guc-invalid",
      "primary_template": "invalid value for parameter \"%s\": \"%s\"",
      "severity_source": "ERROR",
      "sources": [
        "src.guc.parse",
        "src.guc.hooks"
      ],
      "sqlstate": "22023"
    },
    {
      "id": "message.guc-range-int",
      "primary_template": "%d%s%s is outside the valid range for parameter \"%s\" (%d%s%s .. %d%s%s)",
      "severity_source": "ERROR",
      "sources": [
        "src.guc.parse"
      ],
      "sqlstate": "22023"
    },
    {
      "id": "message.guc-range-real",
      "primary_template": "%g%s%s is outside the valid range for parameter \"%s\" (%g%s%s .. %g%s%s)",
      "severity_source": "ERROR",
      "sources": [
        "src.guc.parse"
      ],
      "sqlstate": "22023"
    }
  ],
  "usage_evidence": [
    {
      "scope": "definition",
      "status": "definition_only",
      "evidence_ids": [
        "identity"
      ]
    },
    {
      "scope": "fixed-source-path",
      "status": "source_path_confirmed",
      "evidence_ids": [
        "resolved-path"
      ]
    },
    {
      "scope": "history",
      "status": "unknown",
      "evidence_ids": [
        "history"
      ]
    },
    {
      "scope": "natural-runtime",
      "status": "observed_runtime",
      "evidence_ids": [
        "runtime.observation",
        "runtime.22023-work-mem-latest.latest",
        "runtime.22023-work-mem-pg10.pg10"
      ]
    }
  ],
  "runtime": [
    {
      "id": "runtime.22023-work-mem-latest.latest",
      "run_id": "22023-work-mem-latest",
      "target": "latest",
      "server_version": "18.6 (Homebrew)",
      "server_version_num": 180006,
      "status": "passed",
      "cases": [
        "invalid_work_mem_parameter"
      ],
      "summary_sha256": "1705bbe83c899a9ce9739bf627cbcc14a17d32c39bd5ca36d11102eabb92f56f",
      "raw_sha256": "932cb783e8a553f44f6edffe9668d36c82f970e200a15770f73c8447f12f7b21",
      "snippet_registry": {
        "sha256": "b353a8e7365013a0c5bd27aea71353f81ad125465c825df557bb8e122ddf49ac"
      },
      "observed": {
        "sqlstate": "22023",
        "status_after_repair": "IDLE"
      }
    },
    {
      "id": "runtime.22023-work-mem-pg10.pg10",
      "run_id": "22023-work-mem-pg10",
      "target": "pg10",
      "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
      "server_version_num": 100021,
      "status": "passed",
      "cases": [
        "invalid_work_mem_parameter"
      ],
      "summary_sha256": "9c817f503bad26ec87bd09cbb3b0bf701de02fb9c2dcb14b5472d8fcb1e85509",
      "raw_sha256": "f583cfbb6b8204ba5354d14e0b4808120f648668c17f1c2c2923223bdb21c313",
      "snippet_registry": {
        "sha256": "b353a8e7365013a0c5bd27aea71353f81ad125465c825df557bb8e122ddf49ac"
      },
      "observed": {
        "sqlstate": "22023",
        "status_after_repair": "IDLE"
      }
    }
  ]
}
