{
  "schema": 1,
  "sqlstate": "0A000",
  "condition_name": "feature_not_supported",
  "runner": "scripts/verify_cases.py",
  "targets": {
    "latest": {
      "binary": "Homebrew PostgreSQL 18.6",
      "required": true
    },
    "pg10": {
      "image": "postgres:10",
      "required": true
    }
  },
  "cases": [
    {
      "id": "hash_index_feature",
      "versions": [
        "10",
        "18"
      ],
      "preconditions": [
        "A runner-owned disposable target is provisioned."
      ],
      "trigger": "Use ASC with the hash access method, then create the same index without ordering.",
      "assertions": [
        "The selected server diagnostic has the expected SQLSTATE",
        "The selected recovery/probe assertions pass",
        "Runner-owned resources are cleaned up"
      ],
      "repair": "Follow the case-specific repair statements and verify the resulting state.",
      "cleanup": "Drop the case schema with an owner connection."
    }
  ],
  "evidence_status": "authored",
  "snippets": [
    {
      "id": "hash_index_feature",
      "case_id": "hash_index_feature",
      "language": "sql",
      "statements": {
        "create_table": "CREATE TABLE feature_table (id integer NOT NULL, payload text)",
        "unsupported": "CREATE INDEX hash_index ON feature_table USING hash (id ASC)",
        "repair": "CREATE INDEX hash_index ON feature_table USING hash (id)",
        "verify": "SELECT indisvalid FROM pg_index WHERE indexrelid = 'feature_schema.hash_index'::regclass"
      }
    }
  ],
  "runtime": [
    {
      "id": "runtime.0A000-registry-repair-latest.latest",
      "kind": "runtime_observation",
      "run_id": "0A000-registry-repair-latest",
      "target": "latest",
      "status": "passed",
      "server_version": "18.6 (Homebrew)",
      "server_version_num": 180006,
      "cases": [
        "hash_index_feature"
      ],
      "summary_sha256": "54cc318bb40b47917849a6737f3099701a490097c8166530311694eead88ee4b",
      "raw_sha256": "d97aa6d3727466b1916a09a18977b374e5524e2bee8e25a4a638bdd9e77451d9",
      "case_manifest_sha256": "e711ee0419cff19ec9e882d12ccecfc725c521539a2bcc8fcb25a7da119cd871",
      "snippet_registry": {
        "sha256": "887418175ca41e41edc08dce950711bf71ee61cedb60076304332bb90e1b8cf3"
      },
      "environment": {
        "target_kind": "latest",
        "server_version": "18.6 (Homebrew)",
        "server_version_num": "180006",
        "machine": "arm64",
        "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
        "libpq_version": "18.6",
        "psycopg_version": "3.3.5",
        "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
        "locale": "en_US.UTF-8",
        "lc_messages": "C",
        "log_destination": "csvlog,jsonlog"
      },
      "observed": {
        "connection_autocommit": true,
        "diagnostic": {
          "column_name": null,
          "constraint_name": null,
          "context": null,
          "datatype_name": null,
          "exception_type": "FeatureNotSupported",
          "internal_position": null,
          "internal_query": null,
          "message_detail": null,
          "message_hint": null,
          "message_primary": "access method \"hash\" does not support ASC/DESC options",
          "schema_name": null,
          "severity": "ERROR",
          "severity_nonlocalized": "ERROR",
          "source_file": "indexcmds.c",
          "source_function": "ComputeIndexAttrs",
          "source_line": "2247",
          "sqlstate": "0A000",
          "statement_position": null,
          "table_name": null,
          "text": "access method \"hash\" does not support ASC/DESC options"
        },
        "index_valid": true,
        "repair": "CREATE INDEX USING hash without ASC/DESC",
        "statuses": {
          "after_error": "IDLE",
          "final": "IDLE"
        }
      },
      "assertions": [
        {
          "expected": "0A000",
          "name": "feature SQLSTATE",
          "observed": "0A000",
          "passed": true
        },
        {
          "expected": "access method does not support ASC/DESC options",
          "name": "feature diagnostic",
          "observed": "access method \"hash\" does not support ASC/DESC options",
          "passed": true
        },
        {
          "expected": "IDLE, valid index, IDLE",
          "name": "valid alternative index repairs path",
          "observed": {
            "after_error": "IDLE",
            "final": "IDLE",
            "valid": true
          },
          "passed": true
        }
      ],
      "cleanup": {
        "case": {
          "errors": [],
          "passed": true
        }
      },
      "limits": "Disposable runner-owned target only; this is a bounded mechanism case, not a guarantee for every client or network path.",
      "result": {
        "status": "passed",
        "environment": {
          "TimeZone": "Asia/Shanghai",
          "backend_pid": 88199,
          "binary": {
            "bindir": "/opt/homebrew/Cellar/postgresql@18/18.6/bin",
            "pg_config": "/opt/homebrew/bin/pg_config",
            "pg_config_version": "PostgreSQL 18.6 (Homebrew)",
            "postgres": "/opt/homebrew/Cellar/postgresql@18/18.6/bin/postgres"
          },
          "connection_scope": "runner-owned localhost port",
          "current_user": "runner",
          "docker": {},
          "lc_messages": "C",
          "libpq_version": "18.6",
          "locale": "en_US.UTF-8",
          "log_destination": "csvlog,jsonlog",
          "log_error_verbosity": "verbose",
          "log_min_error_statement": "error",
          "log_min_messages": "error",
          "logging_collector": "on",
          "machine": "arm64",
          "max_connections": "100",
          "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
          "psycopg_version": "3.3.5",
          "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
          "server_encoding": "UTF8",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": "180006",
          "target_kind": "latest",
          "wal_level": "logical"
        },
        "cases": [
          {
            "assertions": [
              {
                "expected": "0A000",
                "name": "feature SQLSTATE",
                "observed": "0A000",
                "passed": true
              },
              {
                "expected": "access method does not support ASC/DESC options",
                "name": "feature diagnostic",
                "observed": "access method \"hash\" does not support ASC/DESC options",
                "passed": true
              },
              {
                "expected": "IDLE, valid index, IDLE",
                "name": "valid alternative index repairs path",
                "observed": {
                  "after_error": "IDLE",
                  "final": "IDLE",
                  "valid": true
                },
                "passed": true
              }
            ],
            "case_id": "hash_index_feature",
            "cleanup": {
              "errors": [],
              "passed": true
            },
            "elapsed_seconds": 0.01,
            "observed": {
              "connection_autocommit": true,
              "diagnostic": {
                "column_name": null,
                "constraint_name": null,
                "context": null,
                "datatype_name": null,
                "exception_type": "FeatureNotSupported",
                "internal_position": null,
                "internal_query": null,
                "message_detail": null,
                "message_hint": null,
                "message_primary": "access method \"hash\" does not support ASC/DESC options",
                "schema_name": null,
                "severity": "ERROR",
                "severity_nonlocalized": "ERROR",
                "source_file": "indexcmds.c",
                "source_function": "ComputeIndexAttrs",
                "source_line": "2247",
                "sqlstate": "0A000",
                "statement_position": null,
                "table_name": null,
                "text": "access method \"hash\" does not support ASC/DESC options"
              },
              "index_valid": true,
              "repair": "CREATE INDEX USING hash without ASC/DESC",
              "statuses": {
                "after_error": "IDLE",
                "final": "IDLE"
              }
            },
            "schema": "c0a000_hash_index_feature",
            "status": "passed"
          }
        ]
      }
    },
    {
      "id": "runtime.0A000-registry-repair-pg10.pg10",
      "kind": "runtime_observation",
      "run_id": "0A000-registry-repair-pg10",
      "target": "pg10",
      "status": "passed",
      "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
      "server_version_num": 100021,
      "cases": [
        "hash_index_feature"
      ],
      "summary_sha256": "22268d4d8c72c33e298f708ed13352c3935fbfc90c4b4fa707eafde5370ae4c4",
      "raw_sha256": "f05761b7086a8c223fc4e1137de8c3580fdf507a452f87892662a98871edb977",
      "case_manifest_sha256": "e711ee0419cff19ec9e882d12ccecfc725c521539a2bcc8fcb25a7da119cd871",
      "snippet_registry": {
        "sha256": "887418175ca41e41edc08dce950711bf71ee61cedb60076304332bb90e1b8cf3"
      },
      "environment": {
        "target_kind": "pg10",
        "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
        "server_version_num": "100021",
        "machine": "arm64",
        "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
        "libpq_version": "18.6",
        "psycopg_version": "3.3.5",
        "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
        "locale": "en_US.UTF-8",
        "lc_messages": "en_US.utf8",
        "log_destination": "csvlog"
      },
      "observed": {
        "connection_autocommit": true,
        "diagnostic": {
          "column_name": null,
          "constraint_name": null,
          "context": null,
          "datatype_name": null,
          "exception_type": "FeatureNotSupported",
          "internal_position": null,
          "internal_query": null,
          "message_detail": null,
          "message_hint": null,
          "message_primary": "access method \"hash\" does not support ASC/DESC options",
          "schema_name": null,
          "severity": "ERROR",
          "severity_nonlocalized": "ERROR",
          "source_file": "indexcmds.c",
          "source_function": "ComputeIndexAttrs",
          "source_line": "1338",
          "sqlstate": "0A000",
          "statement_position": null,
          "table_name": null,
          "text": "access method \"hash\" does not support ASC/DESC options"
        },
        "index_valid": true,
        "repair": "CREATE INDEX USING hash without ASC/DESC",
        "statuses": {
          "after_error": "IDLE",
          "final": "IDLE"
        }
      },
      "assertions": [
        {
          "expected": "0A000",
          "name": "feature SQLSTATE",
          "observed": "0A000",
          "passed": true
        },
        {
          "expected": "access method does not support ASC/DESC options",
          "name": "feature diagnostic",
          "observed": "access method \"hash\" does not support ASC/DESC options",
          "passed": true
        },
        {
          "expected": "IDLE, valid index, IDLE",
          "name": "valid alternative index repairs path",
          "observed": {
            "after_error": "IDLE",
            "final": "IDLE",
            "valid": true
          },
          "passed": true
        }
      ],
      "cleanup": {
        "case": {
          "errors": [],
          "passed": true
        }
      },
      "limits": "Disposable runner-owned target only; this is a bounded mechanism case, not a guarantee for every client or network path.",
      "image": "postgres:10",
      "result": {
        "status": "passed",
        "environment": {
          "TimeZone": "Etc/UTC",
          "backend_pid": 79,
          "binary": {},
          "connection_scope": "runner-owned localhost port",
          "current_user": "postgres",
          "docker": {
            "architecture": "arm64",
            "command": "/usr/local/bin/docker",
            "digest": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
            "id": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
            "image": "postgres:10",
            "image_created": "2022-06-23T09:11:18.374607054Z",
            "image_ref": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
            "log_destination": "csvlog",
            "os": "linux",
            "repo_digests": [
              "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc"
            ]
          },
          "lc_messages": "en_US.utf8",
          "libpq_version": "18.6",
          "locale": "en_US.UTF-8",
          "log_destination": "csvlog",
          "log_error_verbosity": "verbose",
          "log_min_error_statement": "error",
          "log_min_messages": "error",
          "logging_collector": "on",
          "machine": "arm64",
          "max_connections": "100",
          "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
          "psycopg_version": "3.3.5",
          "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
          "server_encoding": "UTF8",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": "100021",
          "target_kind": "pg10",
          "wal_level": "logical"
        },
        "cases": [
          {
            "assertions": [
              {
                "expected": "0A000",
                "name": "feature SQLSTATE",
                "observed": "0A000",
                "passed": true
              },
              {
                "expected": "access method does not support ASC/DESC options",
                "name": "feature diagnostic",
                "observed": "access method \"hash\" does not support ASC/DESC options",
                "passed": true
              },
              {
                "expected": "IDLE, valid index, IDLE",
                "name": "valid alternative index repairs path",
                "observed": {
                  "after_error": "IDLE",
                  "final": "IDLE",
                  "valid": true
                },
                "passed": true
              }
            ],
            "case_id": "hash_index_feature",
            "cleanup": {
              "errors": [],
              "passed": true
            },
            "elapsed_seconds": 0.021,
            "observed": {
              "connection_autocommit": true,
              "diagnostic": {
                "column_name": null,
                "constraint_name": null,
                "context": null,
                "datatype_name": null,
                "exception_type": "FeatureNotSupported",
                "internal_position": null,
                "internal_query": null,
                "message_detail": null,
                "message_hint": null,
                "message_primary": "access method \"hash\" does not support ASC/DESC options",
                "schema_name": null,
                "severity": "ERROR",
                "severity_nonlocalized": "ERROR",
                "source_file": "indexcmds.c",
                "source_function": "ComputeIndexAttrs",
                "source_line": "1338",
                "sqlstate": "0A000",
                "statement_position": null,
                "table_name": null,
                "text": "access method \"hash\" does not support ASC/DESC options"
              },
              "index_valid": true,
              "repair": "CREATE INDEX USING hash without ASC/DESC",
              "statuses": {
                "after_error": "IDLE",
                "final": "IDLE"
              }
            },
            "schema": "c0a000_hash_index_feature",
            "status": "passed"
          }
        ]
      }
    }
  ]
}
