=== Applying patches on top of PostgreSQL commit ID dc47beacaa0b0ad13d7ccd77399cccc98027964d === /etc/rc.d/jail: WARNING: Per-jail configuration via jail_* variables is obsolete. Please consider migrating to /etc/jail.conf. Tue Mar 24 22:30:41 UTC 2026 On branch cf/4351 nothing to commit, working tree clean === using 'git am' to apply patch ./v17-0001-Track-index-only-scan-heap-fetches-using-IndexSc.patch === Applying: Track index-only scan heap fetches using IndexScanInstrumentation. === using 'git am' to apply patch ./v17-0002-heapam-Track-heap-block-in-IndexFetchHeapData-us.patch === Applying: heapam: Track heap block in IndexFetchHeapData using xs_blk === using 'git am' to apply patch ./v17-0003-Add-interfaces-that-enable-index-prefetching.patch === Applying: Add interfaces that enable index prefetching. error: sha1 information is lacking or useless (src/backend/access/heap/heapam_handler.c). error: could not build fake ancestor hint: Use 'git am --show-current-patch=diff' to see the failed patch Patch failed at 0001 Add interfaces that enable index prefetching. 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 ./v17-0003-Add-interfaces-that-enable-index-prefetching.patch === patching file src/include/access/amapi.h patching file src/include/access/genam.h patching file src/include/access/heapam.h patching file src/include/access/indexbatch.h patching file src/include/access/nbtree.h patching file src/include/access/relscan.h patching file src/include/access/tableam.h patching file src/include/nodes/execnodes.h patching file src/include/nodes/pathnodes.h patching file src/backend/access/brin/brin.c patching file src/backend/access/gin/ginget.c patching file src/backend/access/gin/ginutil.c patching file src/backend/access/gist/gist.c patching file src/backend/access/hash/hash.c patching file src/backend/access/heap/heapam_handler.c Hunk #2 succeeded at 88 (offset 1 line). Hunk #3 succeeded at 101 (offset 1 line). Hunk #4 succeeded at 117 (offset 1 line). Hunk #5 succeeded at 180 (offset 1 line). Hunk #6 succeeded at 208 (offset 1 line). Hunk #7 succeeded at 218 (offset 1 line). Hunk #8 succeeded at 226 (offset 1 line). Hunk #9 succeeded at 1378 (offset 1 line). Hunk #10 succeeded at 1416 (offset 1 line). Hunk #11 succeeded at 3276 (offset 1 line). patching file src/backend/access/heap/visibilitymap.c patching file src/backend/access/index/Makefile patching file src/backend/access/index/amapi.c patching file src/backend/access/index/genam.c patching file src/backend/access/index/indexam.c Hunk #3 succeeded at 104 (offset 1 line). Hunk #4 succeeded at 261 (offset 1 line). Hunk #5 succeeded at 278 (offset 1 line). Hunk #6 succeeded at 295 (offset 1 line). Hunk #7 succeeded at 337 (offset 1 line). Hunk #8 succeeded at 394 (offset 1 line). Hunk #9 succeeded at 417 (offset 1 line). Hunk #10 succeeded at 431 (offset 1 line). Hunk #11 succeeded at 456 (offset 1 line). Hunk #12 succeeded at 483 (offset 1 line). Hunk #13 succeeded at 612 (offset 1 line). Hunk #14 succeeded at 627 (offset 1 line). Hunk #15 succeeded at 663 (offset 1 line). Hunk #16 succeeded at 678 (offset 1 line). Hunk #17 succeeded at 696 (offset 1 line). patching file src/backend/access/index/indexbatch.c patching file src/backend/access/index/meson.build patching file src/backend/access/nbtree/README patching file src/backend/access/nbtree/nbtpage.c patching file src/backend/access/nbtree/nbtreadpage.c patching file src/backend/access/nbtree/nbtree.c Hunk #1 succeeded at 161 (offset 1 line). Hunk #2 succeeded at 226 (offset 1 line). Hunk #3 succeeded at 245 (offset 1 line). Hunk #4 succeeded at 268 (offset 1 line). Hunk #5 succeeded at 331 (offset 1 line). Hunk #6 succeeded at 344 (offset 1 line). Hunk #7 succeeded at 362 (offset 1 line). Hunk #8 succeeded at 550 (offset 1 line). Hunk #9 succeeded at 922 (offset 1 line). Hunk #10 succeeded at 1071 (offset 1 line). patching file src/backend/access/nbtree/nbtsearch.c patching file src/backend/access/nbtree/nbtutils.c Hunk #1 FAILED at 19. Hunk #2 succeeded at 145 (offset 1 line). 1 out of 2 hunks FAILED -- saving rejects to file src/backend/access/nbtree/nbtutils.c.rej patching file src/backend/access/nbtree/nbtxlog.c patching file src/backend/access/spgist/spgutils.c patching file src/backend/commands/indexcmds.c patching file src/backend/executor/execAmi.c patching file src/backend/executor/execIndexing.c patching file src/backend/executor/execReplication.c patching file src/backend/executor/nodeBitmapIndexscan.c patching file src/backend/executor/nodeIndexonlyscan.c patching file src/backend/executor/nodeIndexscan.c patching file src/backend/executor/nodeMergejoin.c patching file src/backend/optimizer/path/indxpath.c patching file src/backend/optimizer/util/plancat.c patching file src/backend/replication/logical/relation.c patching file src/backend/utils/adt/amutils.c patching file src/backend/utils/adt/selfuncs.c patching file contrib/amcheck/verify_nbtree.c patching file contrib/bloom/blutils.c patching file doc/src/sgml/indexam.sgml patching file doc/src/sgml/ref/create_table.sgml patching file src/test/modules/dummy_index_am/dummy_index_am.c patching file src/tools/pgindent/typedefs.list Hunk #6 succeeded at 3526 (offset 4 lines). Unstaged changes after reset: M contrib/amcheck/verify_nbtree.c M contrib/bloom/blutils.c M doc/src/sgml/indexam.sgml M doc/src/sgml/ref/create_table.sgml M src/backend/access/brin/brin.c M src/backend/access/gin/ginget.c M src/backend/access/gin/ginutil.c M src/backend/access/gist/gist.c M src/backend/access/hash/hash.c M src/backend/access/heap/heapam_handler.c M src/backend/access/heap/visibilitymap.c M src/backend/access/index/Makefile M src/backend/access/index/amapi.c M src/backend/access/index/genam.c M src/backend/access/index/indexam.c M src/backend/access/index/meson.build M src/backend/access/nbtree/README M src/backend/access/nbtree/nbtpage.c M src/backend/access/nbtree/nbtreadpage.c M src/backend/access/nbtree/nbtree.c M src/backend/access/nbtree/nbtsearch.c M src/backend/access/nbtree/nbtutils.c M src/backend/access/nbtree/nbtxlog.c M src/backend/access/spgist/spgutils.c M src/backend/commands/indexcmds.c M src/backend/executor/execAmi.c M src/backend/executor/execIndexing.c M src/backend/executor/execReplication.c M src/backend/executor/nodeBitmapIndexscan.c M src/backend/executor/nodeIndexonlyscan.c M src/backend/executor/nodeIndexscan.c M src/backend/executor/nodeMergejoin.c M src/backend/optimizer/path/indxpath.c M src/backend/optimizer/util/plancat.c M src/backend/replication/logical/relation.c M src/backend/utils/adt/amutils.c M src/backend/utils/adt/selfuncs.c M src/include/access/amapi.h M src/include/access/genam.h M src/include/access/heapam.h M src/include/access/nbtree.h M src/include/access/relscan.h M src/include/access/tableam.h M src/include/nodes/execnodes.h M src/include/nodes/pathnodes.h M src/test/modules/dummy_index_am/dummy_index_am.c M src/tools/pgindent/typedefs.list Removing src/backend/access/index/indexbatch.c Removing src/backend/access/nbtree/nbtutils.c.rej Removing src/include/access/indexbatch.h === using 'git apply' to apply patch ./v17-0003-Add-interfaces-that-enable-index-prefetching.patch === Applied patch to 'src/include/access/amapi.h' cleanly. Applied patch to 'src/include/access/genam.h' cleanly. Applied patch to 'src/include/access/heapam.h' cleanly. Falling back to direct application... Applied patch to 'src/include/access/nbtree.h' cleanly. Applied patch to 'src/include/access/relscan.h' cleanly. Applied patch to 'src/include/access/tableam.h' cleanly. Applied patch to 'src/include/nodes/execnodes.h' cleanly. Applied patch to 'src/include/nodes/pathnodes.h' cleanly. Applied patch to 'src/backend/access/brin/brin.c' cleanly. Applied patch to 'src/backend/access/gin/ginget.c' cleanly. Applied patch to 'src/backend/access/gin/ginutil.c' cleanly. Applied patch to 'src/backend/access/gist/gist.c' cleanly. Applied patch to 'src/backend/access/hash/hash.c' cleanly. error: repository lacks the necessary blob to perform 3-way merge. Falling back to direct application... Applied patch to 'src/backend/access/heap/visibilitymap.c' cleanly. Applied patch to 'src/backend/access/index/Makefile' cleanly. Applied patch to 'src/backend/access/index/amapi.c' cleanly. Applied patch to 'src/backend/access/index/genam.c' cleanly. Applied patch to 'src/backend/access/index/indexam.c' cleanly. Falling back to direct application... Applied patch to 'src/backend/access/index/meson.build' cleanly. Applied patch to 'src/backend/access/nbtree/README' cleanly. Applied patch to 'src/backend/access/nbtree/nbtpage.c' cleanly. Applied patch to 'src/backend/access/nbtree/nbtreadpage.c' cleanly. Applied patch to 'src/backend/access/nbtree/nbtree.c' cleanly. Applied patch to 'src/backend/access/nbtree/nbtsearch.c' cleanly. Applied patch to 'src/backend/access/nbtree/nbtutils.c' cleanly. Applied patch to 'src/backend/access/nbtree/nbtxlog.c' cleanly. Applied patch to 'src/backend/access/spgist/spgutils.c' cleanly. Applied patch to 'src/backend/commands/indexcmds.c' cleanly. Applied patch to 'src/backend/executor/execAmi.c' cleanly. Applied patch to 'src/backend/executor/execIndexing.c' cleanly. Applied patch to 'src/backend/executor/execReplication.c' cleanly. Applied patch to 'src/backend/executor/nodeBitmapIndexscan.c' cleanly. Applied patch to 'src/backend/executor/nodeIndexonlyscan.c' cleanly. Applied patch to 'src/backend/executor/nodeIndexscan.c' cleanly. Applied patch to 'src/backend/executor/nodeMergejoin.c' cleanly. Applied patch to 'src/backend/optimizer/path/indxpath.c' cleanly. Applied patch to 'src/backend/optimizer/util/plancat.c' cleanly. Applied patch to 'src/backend/replication/logical/relation.c' cleanly. Applied patch to 'src/backend/utils/adt/amutils.c' cleanly. Applied patch to 'src/backend/utils/adt/selfuncs.c' cleanly. Applied patch to 'contrib/amcheck/verify_nbtree.c' cleanly. Applied patch to 'contrib/bloom/blutils.c' cleanly. Applied patch to 'doc/src/sgml/indexam.sgml' cleanly. Applied patch to 'doc/src/sgml/ref/create_table.sgml' cleanly. Applied patch to 'src/test/modules/dummy_index_am/dummy_index_am.c' cleanly. Applied patch to 'src/tools/pgindent/typedefs.list' cleanly. [cf/4351 af73412c37d] Add interfaces that enable index prefetching. Author: Peter Geoghegan Date: Tue Sep 9 19:50:03 2025 -0400 49 files changed, 3246 insertions(+), 1606 deletions(-) create mode 100644 src/backend/access/index/indexbatch.c create mode 100644 src/include/access/indexbatch.h === using 'git am' to apply patch ./v17-0004-Implement-VISITED_PAGES_LIMIT-within-heapam.patch === fatal: previous rebase directory .git/rebase-apply still exists but mbox given. === using patch(1) to apply patch ./v17-0004-Implement-VISITED_PAGES_LIMIT-within-heapam.patch === patching file src/include/access/relscan.h patching file src/backend/access/heap/heapam_handler.c Hunk #1 succeeded at 658 (offset 1 line). Hunk #2 succeeded at 709 (offset 1 line). patching file src/backend/access/index/genam.c patching file src/backend/utils/adt/selfuncs.c [cf/4351 cb14be6ad58] Implement VISITED_PAGES_LIMIT within heapam. Author: Peter Geoghegan Date: Thu Mar 19 12:32:34 2026 -0400 4 files changed, 37 insertions(+), 2 deletions(-) === using 'git am' to apply patch ./v17-0005-Optimize-heap-buffer-pin-transfer-for-last-in-bl.patch === fatal: previous rebase directory .git/rebase-apply still exists but mbox given. === using patch(1) to apply patch ./v17-0005-Optimize-heap-buffer-pin-transfer-for-last-in-bl.patch === patching file src/include/access/heapam.h patching file src/backend/access/heap/heapam_handler.c Hunk #1 succeeded at 185 (offset 1 line). Hunk #2 succeeded at 227 (offset 1 line). Hunk #3 succeeded at 392 (offset 1 line). [cf/4351 af85692168d] Optimize heap buffer pin transfer for last-in-block index items. Author: Peter Geoghegan Date: Sun Mar 22 02:22:06 2026 -0400 2 files changed, 70 insertions(+), 1 deletion(-) === using 'git am' to apply patch ./v17-0006-Add-UnlockBufferGetLSN-utility-function.patch === fatal: previous rebase directory .git/rebase-apply still exists but mbox given. === using patch(1) to apply patch ./v17-0006-Add-UnlockBufferGetLSN-utility-function.patch === patching file src/include/storage/bufmgr.h patching file src/backend/access/index/indexbatch.c patching file src/backend/storage/buffer/bufmgr.c [cf/4351 3f008aacafd] Add UnlockBufferGetLSN utility function. Author: Peter Geoghegan Date: Tue Mar 17 13:25:12 2026 -0400 3 files changed, 49 insertions(+), 11 deletions(-) === using 'git am' to apply patch ./v17-0007-Add-heapam-index-scan-I-O-prefetching.patch === fatal: previous rebase directory .git/rebase-apply still exists but mbox given. === using patch(1) to apply patch ./v17-0007-Add-heapam-index-scan-I-O-prefetching.patch === patching file src/include/access/heapam.h patching file src/include/access/relscan.h patching file src/include/optimizer/cost.h patching file src/backend/access/heap/heapam_handler.c Hunk #2 succeeded at 64 (offset 1 line). Hunk #3 succeeded at 108 (offset 1 line). Hunk #4 succeeded at 140 (offset 1 line). Hunk #5 succeeded at 212 (offset 1 line). Hunk #6 succeeded at 302 (offset 1 line). Hunk #7 succeeded at 513 (offset 1 line). Hunk #8 succeeded at 577 (offset 1 line). Hunk #9 succeeded at 638 (offset 1 line). Hunk #10 succeeded at 664 (offset 1 line). Hunk #11 succeeded at 708 (offset 1 line). Hunk #12 succeeded at 722 (offset 1 line). Hunk #13 succeeded at 768 (offset 1 line). patching file src/backend/access/index/indexbatch.c patching file src/backend/optimizer/path/costsize.c patching file src/backend/utils/misc/guc_parameters.dat patching file src/backend/utils/misc/postgresql.conf.sample patching file doc/src/sgml/config.sgml patching file doc/src/sgml/indexam.sgml patching file doc/src/sgml/tableam.sgml patching file src/test/regress/expected/sysviews.out [cf/4351 c22306aeeeb] Add heapam index scan I/O prefetching. Author: Peter Geoghegan Date: Sat Nov 15 14:03:58 2025 -0500 12 files changed, 596 insertions(+), 13 deletions(-) === using 'git am' to apply patch ./v17-0008-Make-hash-index-AM-use-amgetbatch-interface.patch === fatal: previous rebase directory .git/rebase-apply still exists but mbox given. === using patch(1) to apply patch ./v17-0008-Make-hash-index-AM-use-amgetbatch-interface.patch === patching file src/include/access/hash.h patching file src/backend/access/hash/README patching file src/backend/access/hash/hash.c patching file src/backend/access/hash/hash_xlog.c patching file src/backend/access/hash/hashpage.c patching file src/backend/access/hash/hashsearch.c patching file src/backend/access/hash/hashutil.c patching file doc/src/sgml/indexam.sgml patching file src/tools/pgindent/typedefs.list [cf/4351 198e3f362e4] Make hash index AM use amgetbatch interface. Author: Peter Geoghegan Date: Tue Nov 25 18:03:15 2025 -0500 9 files changed, 341 insertions(+), 507 deletions(-) === using 'git am' to apply patch ./v17-0009-Make-buffer-hit-helper.patch === fatal: previous rebase directory .git/rebase-apply still exists but mbox given. === using patch(1) to apply patch ./v17-0009-Make-buffer-hit-helper.patch === patching file src/backend/storage/buffer/bufmgr.c [cf/4351 bf22ab53550] Make buffer hit helper Author: Melanie Plageman Date: Fri Jan 23 13:54:02 2026 -0500 1 file changed, 56 insertions(+), 55 deletions(-) === using 'git am' to apply patch ./v17-0010-Don-t-wait-for-already-in-progress-IO.patch === fatal: previous rebase directory .git/rebase-apply still exists but mbox given. === using patch(1) to apply patch ./v17-0010-Don-t-wait-for-already-in-progress-IO.patch === patching file src/include/storage/bufmgr.h patching file src/backend/storage/buffer/bufmgr.c patching file src/tools/pgindent/typedefs.list Hunk #1 succeeded at 2378 (offset 4 lines). [cf/4351 c5398abe76c] Don't wait for already in-progress IO Author: Melanie Plageman Date: Fri Jan 23 14:00:31 2026 -0500 3 files changed, 320 insertions(+), 163 deletions(-) === using 'git am' to apply patch ./v17-0011-WIP-read_stream-Issue-IO-synchronously-while-in-.patch === fatal: previous rebase directory .git/rebase-apply still exists but mbox given. === using patch(1) to apply patch ./v17-0011-WIP-read_stream-Issue-IO-synchronously-while-in-.patch === patching file src/backend/storage/aio/read_stream.c [cf/4351 7d3f2916cf9] WIP: read_stream: Issue IO synchronously while in fast path Author: Andres Freund Date: Tue Mar 3 16:25:41 2026 -0500 1 file changed, 15 insertions(+) === using 'git am' to apply patch ./v17-0012-WIP-aio-io_uring-Allow-IO-methods-to-check-if-IO.patch === fatal: previous rebase directory .git/rebase-apply still exists but mbox given. === using patch(1) to apply patch ./v17-0012-WIP-aio-io_uring-Allow-IO-methods-to-check-if-IO.patch === patching file src/include/storage/aio_internal.h patching file src/backend/storage/aio/aio.c patching file src/backend/storage/aio/method_io_uring.c [cf/4351 516f1a27ac5] WIP: aio: io_uring: Allow IO methods to check if IO completed in the background Author: Andres Freund Date: Tue Mar 3 16:40:35 2026 -0500 3 files changed, 77 insertions(+) === using 'git am' to apply patch ./v17-0013-bufmgr-Return-whether-WaitReadBuffers-needed-to-.patch === fatal: previous rebase directory .git/rebase-apply still exists but mbox given. === using patch(1) to apply patch ./v17-0013-bufmgr-Return-whether-WaitReadBuffers-needed-to-.patch === patching file src/include/storage/bufmgr.h patching file src/backend/storage/buffer/bufmgr.c [cf/4351 11cc9ed1e73] bufmgr: Return whether WaitReadBuffers() needed to wait Author: Andres Freund Date: Tue Mar 3 16:50:50 2026 -0500 2 files changed, 18 insertions(+), 2 deletions(-) === using 'git am' to apply patch ./v17-0014-WIP-read_stream-Only-increase-distance-when-wait.patch === fatal: previous rebase directory .git/rebase-apply still exists but mbox given. === using patch(1) to apply patch ./v17-0014-WIP-read_stream-Only-increase-distance-when-wait.patch === patching file src/backend/storage/aio/read_stream.c [cf/4351 f4c57269fa5] WIP: read_stream: Only increase distance when waiting for IO Author: Andres Freund Date: Tue Mar 3 18:00:53 2026 -0500 1 file changed, 19 insertions(+), 5 deletions(-) === using 'git am' to apply patch ./v17-0015-WIP-read_stream-Prevent-distance-from-decaying-t.patch === fatal: previous rebase directory .git/rebase-apply still exists but mbox given. === using patch(1) to apply patch ./v17-0015-WIP-read_stream-Prevent-distance-from-decaying-t.patch === patching file src/backend/storage/aio/read_stream.c [cf/4351 ce6f28bd5bc] WIP: read_stream: Prevent distance from decaying too quickly Author: Andres Freund Date: Tue Mar 3 17:25:25 2026 -0500 1 file changed, 30 insertions(+), 3 deletions(-) === using 'git am' to apply patch ./v17-0016-WIP-aio-io_uring-Use-IO-size-not-IO-queue-to-tri.patch === fatal: previous rebase directory .git/rebase-apply still exists but mbox given. === using patch(1) to apply patch ./v17-0016-WIP-aio-io_uring-Use-IO-size-not-IO-queue-to-tri.patch === patching file src/backend/storage/aio/method_io_uring.c [cf/4351 6d6815c0c45] WIP: aio: io_uring: Use IO size not IO queue to trigger async processing Author: Andres Freund Date: Tue Mar 3 20:23:55 2026 -0500 1 file changed, 35 insertions(+), 22 deletions(-) === using 'git am' to apply patch ./v17-0017-WIP-instrumentation-Account-for-resource-usage-u.patch === fatal: previous rebase directory .git/rebase-apply still exists but mbox given. === using patch(1) to apply patch ./v17-0017-WIP-instrumentation-Account-for-resource-usage-u.patch === patching file src/backend/executor/execAmi.c [cf/4351 d2669270c29] WIP: instrumentation: Account for resource usage uring rescans Author: Andres Freund Date: Thu Mar 19 23:08:29 2026 -0400 1 file changed, 17 insertions(+), 2 deletions(-) === using 'git am' to apply patch ./v17-0018-Dirty-hack-to-make-read_stream_reset-end-not-wai.patch === fatal: previous rebase directory .git/rebase-apply still exists but mbox given. === using patch(1) to apply patch ./v17-0018-Dirty-hack-to-make-read_stream_reset-end-not-wai.patch === patching file src/include/storage/aio.h patching file src/backend/storage/aio/aio.c patching file src/backend/storage/aio/read_stream.c [cf/4351 0d376f79804] Dirty hack to make read_stream_reset()/end() not wait for IO Author: Andres Freund Date: Thu Mar 19 23:06:58 2026 -0400 3 files changed, 54 insertions(+), 6 deletions(-)