{
  "schemaVersion": 1,
  "generatedAt": "2026-11-18T23:12:48.293372+00:00",
  "environment": {
    "version": "PostgreSQL 16.15 (Ubuntu 16.15-0ubuntu0.24.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0, 64-bit",
    "server_version_num": "160015",
    "block_size": "8192",
    "checksums": "on"
  },
  "collision": {
    "hash": -1082004559,
    "values": [
      "15601",
      "180514"
    ]
  },
  "hashes": [
    -1082004559,
    -1082004559
  ],
  "before": [
    "15601",
    "180514"
  ],
  "after": [
    "15601",
    "180514"
  ],
  "query": "SELECT value FROM collision WHERE value='15601';",
  "cases": [
    {
      "mode": "index",
      "settings": "SET max_parallel_workers_per_gather=0; SET jit=off;SET enable_seqscan=off; SET enable_bitmapscan=off; SET enable_indexscan=on;",
      "rows": [
        "15601"
      ],
      "explain": [
        {
          "Plan": {
            "Node Type": "Index Scan",
            "Parallel Aware": false,
            "Async Capable": false,
            "Scan Direction": "Forward",
            "Index Name": "collision_hash",
            "Relation Name": "collision",
            "Alias": "collision",
            "Startup Cost": 0.0,
            "Total Cost": 16.02,
            "Plan Rows": 1,
            "Plan Width": 6,
            "Actual Rows": 1,
            "Actual Loops": 1,
            "Index Cond": "(value = '15601'::text)",
            "Rows Removed by Index Recheck": 1
          },
          "Triggers": []
        }
      ]
    },
    {
      "mode": "bitmap",
      "settings": "SET max_parallel_workers_per_gather=0; SET jit=off;SET enable_seqscan=off; SET enable_bitmapscan=on; SET enable_indexscan=off;",
      "rows": [
        "15601"
      ],
      "explain": [
        {
          "Plan": {
            "Node Type": "Bitmap Heap Scan",
            "Parallel Aware": false,
            "Async Capable": false,
            "Relation Name": "collision",
            "Alias": "collision",
            "Startup Cost": 12.01,
            "Total Cost": 16.02,
            "Plan Rows": 1,
            "Plan Width": 6,
            "Actual Rows": 1,
            "Actual Loops": 1,
            "Recheck Cond": "(value = '15601'::text)",
            "Rows Removed by Index Recheck": 1,
            "Exact Heap Blocks": 1,
            "Lossy Heap Blocks": 0,
            "Plans": [
              {
                "Node Type": "Bitmap Index Scan",
                "Parent Relationship": "Outer",
                "Parallel Aware": false,
                "Async Capable": false,
                "Index Name": "collision_hash",
                "Startup Cost": 0.0,
                "Total Cost": 12.01,
                "Plan Rows": 1,
                "Plan Width": 0,
                "Actual Rows": 2,
                "Actual Loops": 1,
                "Index Cond": "(value = '15601'::text)"
              }
            ]
          },
          "Triggers": []
        }
      ]
    },
    {
      "mode": "sequential",
      "settings": "SET max_parallel_workers_per_gather=0; SET jit=off;SET enable_seqscan=on; SET enable_bitmapscan=off; SET enable_indexscan=off;",
      "rows": [
        "15601"
      ],
      "explain": [
        {
          "Plan": {
            "Node Type": "Seq Scan",
            "Parallel Aware": false,
            "Async Capable": false,
            "Relation Name": "collision",
            "Alias": "collision",
            "Startup Cost": 0.0,
            "Total Cost": 1.02,
            "Plan Rows": 1,
            "Plan Width": 6,
            "Actual Rows": 1,
            "Actual Loops": 1,
            "Filter": "(value = '15601'::text)",
            "Rows Removed by Filter": 1
          },
          "Triggers": []
        }
      ]
    }
  ],
  "probeSha256": "a4ae1d790587d363e5488b1785e8f882928814f0914ef22328eed407d7af28a2",
  "binarySha256": {
    "postgres": "201d8daff9a5bd9df70b820471b965c39f5a776d677f395232c477d051270722",
    "initdb": "df8c50fd508bb31db312a8519a2e7922c63b44f7d963c39d58dc107169078a0d",
    "pg_ctl": "f311ff51f5a28ff104e43661c733b36d25cc9c5d7a66f0e463611378aafe4590",
    "psql": "df8031178589c31c7bc20aa2adf902e1cc3f0aa9ea12428aa5db3d476cbcac1a"
  },
  "commands": [
    {
      "program": "initdb",
      "returncode": 0,
      "stdout": "The files belonging to this database system will be owned by user \"cgpt-mcp\".\nThis user must also own the server process.\n\nThe database cluster will be initialized with locale \"C\".\nThe default text search configuration will be set to \"english\".\n\nData page checksums are enabled.\n\ncreating directory /tmp/hesela-hash-recheck-yt2zezh9/data ... ok\ncreating subdirectories ... ok\nselecting dynamic shared memory implementation ... posix\nselecting default max_connections ... 100\nselecting default shared_buffers ... 128MB\nselecting default time zone ... Europe/Warsaw\ncreating configuration files ... ok\nrunning bootstrap script ... ok\nperforming post-bootstrap initialization ... ok\nsyncing data to disk ... ok\n\nSuccess. You can now start the database server using:\n\n    /srv/cgpt-workspace/tmp/aio-pg-toast-runtime-20261021/extracted/usr/lib/postgresql/16/bin/pg_ctl -D /tmp/hesela-hash-recheck-yt2zezh9/data -l logfile start",
      "stderr": ""
    },
    {
      "program": "pg_ctl",
      "returncode": 0,
      "stdout": "waiting for server to start.... done\nserver started",
      "stderr": ""
    },
    {
      "program": "psql",
      "returncode": 0,
      "stdout": "{\"hash\" : -1082004559, \"values\" : [\"15601\",\"180514\"]}",
      "stderr": "",
      "sql": "SELECT json_build_object('hash',h,'values',v[1:2]) FROM (SELECT hashtext(i::text) h,array_agg(i::text ORDER BY i) v,min(i) first FROM generate_series(1,250000) i GROUP BY 1 HAVING count(*)>1) s ORDER BY first LIMIT 1;"
    },
    {
      "program": "psql",
      "returncode": 0,
      "stdout": "",
      "stderr": "",
      "sql": "CREATE TABLE collision(value text COLLATE \"C\" NOT NULL);INSERT INTO collision VALUES ('15601'),('180514');CREATE INDEX collision_hash ON collision USING hash(value); ANALYZE collision;"
    },
    {
      "program": "psql",
      "returncode": 0,
      "stdout": "{\"version\" : \"PostgreSQL 16.15 (Ubuntu 16.15-0ubuntu0.24.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0, 64-bit\", \"server_version_num\" : \"160015\", \"block_size\" : \"8192\", \"checksums\" : \"on\"}",
      "stderr": "",
      "sql": "SELECT json_build_object('version',version(),'server_version_num',current_setting('server_version_num'),'block_size',current_setting('block_size'),'checksums',current_setting('data_checksums'));"
    },
    {
      "program": "psql",
      "returncode": 0,
      "stdout": "[-1082004559, -1082004559]",
      "stderr": "",
      "sql": "SELECT json_agg(hashtext(value) ORDER BY value::int) FROM collision;"
    },
    {
      "program": "psql",
      "returncode": 0,
      "stdout": "[\"15601\", \"180514\"]",
      "stderr": "",
      "sql": "SELECT json_agg(value ORDER BY value::int) FROM collision;"
    },
    {
      "program": "psql",
      "returncode": 0,
      "stdout": "[\n  {\n    \"Plan\": {\n      \"Node Type\": \"Index Scan\",\n      \"Parallel Aware\": false,\n      \"Async Capable\": false,\n      \"Scan Direction\": \"Forward\",\n      \"Index Name\": \"collision_hash\",\n      \"Relation Name\": \"collision\",\n      \"Alias\": \"collision\",\n      \"Startup Cost\": 0.00,\n      \"Total Cost\": 16.02,\n      \"Plan Rows\": 1,\n      \"Plan Width\": 6,\n      \"Actual Rows\": 1,\n      \"Actual Loops\": 1,\n      \"Index Cond\": \"(value = '15601'::text)\",\n      \"Rows Removed by Index Recheck\": 1\n    },\n    \"Triggers\": [\n    ]\n  }\n]",
      "stderr": "",
      "sql": "SET max_parallel_workers_per_gather=0; SET jit=off;SET enable_seqscan=off; SET enable_bitmapscan=off; SET enable_indexscan=on;EXPLAIN (ANALYZE,TIMING OFF,SUMMARY OFF,FORMAT JSON) SELECT value FROM collision WHERE value='15601';"
    },
    {
      "program": "psql",
      "returncode": 0,
      "stdout": "15601",
      "stderr": "",
      "sql": "SET max_parallel_workers_per_gather=0; SET jit=off;SET enable_seqscan=off; SET enable_bitmapscan=off; SET enable_indexscan=on;SELECT value FROM collision WHERE value='15601';"
    },
    {
      "program": "psql",
      "returncode": 0,
      "stdout": "[\n  {\n    \"Plan\": {\n      \"Node Type\": \"Bitmap Heap Scan\",\n      \"Parallel Aware\": false,\n      \"Async Capable\": false,\n      \"Relation Name\": \"collision\",\n      \"Alias\": \"collision\",\n      \"Startup Cost\": 12.01,\n      \"Total Cost\": 16.02,\n      \"Plan Rows\": 1,\n      \"Plan Width\": 6,\n      \"Actual Rows\": 1,\n      \"Actual Loops\": 1,\n      \"Recheck Cond\": \"(value = '15601'::text)\",\n      \"Rows Removed by Index Recheck\": 1,\n      \"Exact Heap Blocks\": 1,\n      \"Lossy Heap Blocks\": 0,\n      \"Plans\": [\n        {\n          \"Node Type\": \"Bitmap Index Scan\",\n          \"Parent Relationship\": \"Outer\",\n          \"Parallel Aware\": false,\n          \"Async Capable\": false,\n          \"Index Name\": \"collision_hash\",\n          \"Startup Cost\": 0.00,\n          \"Total Cost\": 12.01,\n          \"Plan Rows\": 1,\n          \"Plan Width\": 0,\n          \"Actual Rows\": 2,\n          \"Actual Loops\": 1,\n          \"Index Cond\": \"(value = '15601'::text)\"\n        }\n      ]\n    },\n    \"Triggers\": [\n    ]\n  }\n]",
      "stderr": "",
      "sql": "SET max_parallel_workers_per_gather=0; SET jit=off;SET enable_seqscan=off; SET enable_bitmapscan=on; SET enable_indexscan=off;EXPLAIN (ANALYZE,TIMING OFF,SUMMARY OFF,FORMAT JSON) SELECT value FROM collision WHERE value='15601';"
    },
    {
      "program": "psql",
      "returncode": 0,
      "stdout": "15601",
      "stderr": "",
      "sql": "SET max_parallel_workers_per_gather=0; SET jit=off;SET enable_seqscan=off; SET enable_bitmapscan=on; SET enable_indexscan=off;SELECT value FROM collision WHERE value='15601';"
    },
    {
      "program": "psql",
      "returncode": 0,
      "stdout": "[\n  {\n    \"Plan\": {\n      \"Node Type\": \"Seq Scan\",\n      \"Parallel Aware\": false,\n      \"Async Capable\": false,\n      \"Relation Name\": \"collision\",\n      \"Alias\": \"collision\",\n      \"Startup Cost\": 0.00,\n      \"Total Cost\": 1.02,\n      \"Plan Rows\": 1,\n      \"Plan Width\": 6,\n      \"Actual Rows\": 1,\n      \"Actual Loops\": 1,\n      \"Filter\": \"(value = '15601'::text)\",\n      \"Rows Removed by Filter\": 1\n    },\n    \"Triggers\": [\n    ]\n  }\n]",
      "stderr": "",
      "sql": "SET max_parallel_workers_per_gather=0; SET jit=off;SET enable_seqscan=on; SET enable_bitmapscan=off; SET enable_indexscan=off;EXPLAIN (ANALYZE,TIMING OFF,SUMMARY OFF,FORMAT JSON) SELECT value FROM collision WHERE value='15601';"
    },
    {
      "program": "psql",
      "returncode": 0,
      "stdout": "15601",
      "stderr": "",
      "sql": "SET max_parallel_workers_per_gather=0; SET jit=off;SET enable_seqscan=on; SET enable_bitmapscan=off; SET enable_indexscan=off;SELECT value FROM collision WHERE value='15601';"
    },
    {
      "program": "psql",
      "returncode": 0,
      "stdout": "[\"15601\", \"180514\"]",
      "stderr": "",
      "sql": "SELECT json_agg(value ORDER BY value::int) FROM collision;"
    },
    {
      "program": "pg_ctl",
      "returncode": 0,
      "stdout": "waiting for server to shut down.... done\nserver stopped",
      "stderr": ""
    }
  ]
}
