=== Applying patches on top of PostgreSQL commit ID 81b2179b492e3af891544813b7e22a42386b34d0 === /etc/rc.d/jail: WARNING: Per-jail configuration via jail_* variables is obsolete. Please consider migrating to /etc/jail.conf. Sun Nov 15 06:44:28 UTC 2026 On branch cf/7344 nothing to commit, working tree clean === using 'git am' to apply patch ./v3-0001-Fix-SSI-conflicts-between-index-only-scans-and-he.patch === Applying: Fix SSI conflicts between index-only scans and heap writes Using index info to reconstruct a base tree... M src/backend/access/heap/heapam.c M src/backend/access/heap/heapam_indexscan.c M src/test/modules/injection_points/Makefile M src/test/modules/injection_points/meson.build Falling back to patching base and 3-way merge... Auto-merging src/test/modules/injection_points/meson.build CONFLICT (content): Merge conflict in src/test/modules/injection_points/meson.build Auto-merging src/test/modules/injection_points/Makefile CONFLICT (content): Merge conflict in src/test/modules/injection_points/Makefile Auto-merging src/backend/access/heap/heapam_indexscan.c CONFLICT (content): Merge conflict in src/backend/access/heap/heapam_indexscan.c Auto-merging src/backend/access/heap/heapam.c error: Failed to merge in the changes. hint: Use 'git am --show-current-patch=diff' to see the failed patch Patch failed at 0001 Fix SSI conflicts between index-only scans and heap writes When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort". === using patch(1) to apply patch ./v3-0001-Fix-SSI-conflicts-between-index-only-scans-and-he.patch === patching file src/backend/access/heap/heapam.c Hunk #1 succeeded at 2998 (offset 2 lines). Hunk #2 succeeded at 3170 (offset 2 lines). Hunk #3 succeeded at 4069 (offset 15 lines). Hunk #4 succeeded at 4083 (offset 15 lines). Hunk #5 succeeded at 4329 (offset 15 lines). patching file src/backend/access/heap/heapam_indexscan.c Hunk #2 FAILED at 367. 1 out of 2 hunks FAILED -- saving rejects to file src/backend/access/heap/heapam_indexscan.c.rej patching file src/backend/access/heap/visibilitymap.c patching file src/test/modules/injection_points/Makefile Hunk #1 FAILED at 29. 1 out of 1 hunk FAILED -- saving rejects to file src/test/modules/injection_points/Makefile.rej patching file src/test/modules/injection_points/expected/index_only_scan_ssi.out patching file src/test/modules/injection_points/meson.build Hunk #1 FAILED at 59. 1 out of 1 hunk FAILED -- saving rejects to file src/test/modules/injection_points/meson.build.rej patching file src/test/modules/injection_points/specs/index_only_scan_ssi.spec Unstaged changes after reset: M src/backend/access/heap/heapam.c M src/backend/access/heap/heapam_indexscan.c M src/backend/access/heap/visibilitymap.c Removing src/backend/access/heap/heapam_indexscan.c.rej Removing src/test/modules/injection_points/Makefile.rej Removing src/test/modules/injection_points/expected/index_only_scan_ssi.out Removing src/test/modules/injection_points/meson.build.rej Removing src/test/modules/injection_points/specs/index_only_scan_ssi.spec === using 'git apply' to apply patch ./v3-0001-Fix-SSI-conflicts-between-index-only-scans-and-he.patch === Applied patch to 'src/backend/access/heap/heapam.c' cleanly. Applied patch to 'src/backend/access/heap/heapam_indexscan.c' with conflicts. Applied patch to 'src/backend/access/heap/visibilitymap.c' cleanly. Applied patch to 'src/test/modules/injection_points/Makefile' with conflicts. Falling back to direct application... Applied patch to 'src/test/modules/injection_points/meson.build' with conflicts. Falling back to direct application... U src/backend/access/heap/heapam_indexscan.c U src/test/modules/injection_points/Makefile U src/test/modules/injection_points/meson.build diff --cc src/backend/access/heap/heapam_indexscan.c index 49981525c67,a955aded155..00000000000 --- a/src/backend/access/heap/heapam_indexscan.c +++ b/src/backend/access/heap/heapam_indexscan.c @@@ -365,20 -367,10 +367,21 @@@ heapam_index_getnext_slot(IndexScanDes ItemPointerGetBlockNumber(&scan->xs_heaptid), &hscan->xs_vmbuffer); ++<<<<<<< ours + if (unlikely(!all_visible)) + { + /* Page isn't all-visible, so need a heap fetch */ + if (!heapam_index_only_heap_fetch(scan)) + { + /* No visible tuple */ + if (heapam_index_visited_pages_exceeded(scan)) + return false; /* give up */ - - continue; /* try next index entry */ - } - } - else ++======= + if (all_visible) { + INJECTION_POINT("index-only-scan-before-predicate-lock", NULL); ++>>>>>>> theirs + /* * Index-only scan with all-visible item. * diff --cc src/test/modules/injection_points/Makefile index a7a16d5016a,35f70c94b9a..00000000000 --- a/src/test/modules/injection_points/Makefile +++ b/src/test/modules/injection_points/Makefile @@@ -34,10 -27,10 +34,14 @@@ ISOLATION = basic ri_fastpath_reindex \ ri_fastpath_snapshot \ syscache-update-pruned \ - wait_cleanup \ + $(WAIT_CLEANUP_TST) \ heap_lock_update \ on_conflict_probe_window \ ++<<<<<<< ours + multixact-aborted-updater ++======= + index_only_scan_ssi ++>>>>>>> theirs # some isolation tests require wal_level=replica ISOLATION_OPTS = --temp-config $(top_srcdir)/src/test/modules/injection_points/extra.conf diff --cc src/test/modules/injection_points/meson.build index cf9cb219548,4b6a888318a..00000000000 --- a/src/test/modules/injection_points/meson.build +++ b/src/test/modules/injection_points/meson.build @@@ -71,7 -42,25 +71,29 @@@ tests += 'runningcheck': false, }, 'isolation': { ++<<<<<<< ours + 'specs': injection_points_isolation, ++======= + 'specs': [ + 'basic', + 'inplace', + 'reindex_concurrently_deferred', + 'repack', + 'repack_commit_race', + 'repack_decode', + 'repack_missingval', + 'repack_temporal', + 'repack_temporal_multirange', + 'repack_toast', + 'ri_fastpath_reindex', + 'ri_fastpath_snapshot', + 'syscache-update-pruned', + 'wait_cleanup', + 'heap_lock_update', + 'on_conflict_probe_window', + 'index_only_scan_ssi', + ], ++>>>>>>> theirs 'runningcheck': false, # see syscache-update-pruned # Some tests wait for all snapshots, so avoid parallel execution 'runningcheck-parallel': false,