]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Move heapam_handler.c index scan code to new file.
authorPeter Geoghegan <pg@bowt.ie>
Sat, 4 Apr 2026 15:30:41 +0000 (11:30 -0400)
committerPeter Geoghegan <pg@bowt.ie>
Sat, 4 Apr 2026 15:30:41 +0000 (11:30 -0400)
commita29fdd6c8d816af0d042491a79c8ec1a60272c06
tree5b8660eac98d248c3e55d99207f96a09e90b7861
parent1adff1a0c558ecaef4fbe4cf343c426a59414749
Move heapam_handler.c index scan code to new file.

Move the heapam index fetch callbacks (index_fetch_begin,
index_fetch_reset, index_fetch_end, and index_fetch_tuple) into a new
dedicated file.  Also move heap_hot_search_buffer over.  This is a
purely mechanical move with no functional impact.

Upcoming work to add a slot-based table AM interface for index scans
will substantially expand this code.  Keeping it in heapam_handler.c
would clutter a file whose primary role is to wire up the TableAmRoutine
callbacks.  Bitmap heap scans and sequential scans would benefit from
similar separation in the future.

Author: Peter Geoghegan <pg@bowt.ie>
Reviewed-By: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/bmbrkiyjxoal6o5xadzv5bveoynrt3x37wqch7w3jnwumkq2yo@b4zmtnrfs4mh
src/backend/access/heap/Makefile
src/backend/access/heap/heapam.c
src/backend/access/heap/heapam_handler.c
src/backend/access/heap/heapam_indexscan.c [new file with mode: 0644]
src/backend/access/heap/meson.build
src/include/access/heapam.h