Refactor heapam.c adding heapgettup_initial_block function

David Rowley <drowley@postgresql.org>

Commit: fb1a59de0c52609653166aafc6ce8679a9cfe54b
Author: David Rowley <drowley@postgresql.org>
Date: 2023-02-02T01:17:15Z
Releases: 16.0
Refactor heapam.c adding heapgettup_initial_block function

Here we adjust heapgettup() and heapgettup_pagemode() to move the code
that fetches the first block number to scan out into a helper function.
This removes some code duplication.

Author: Melanie Plageman
Reviewed-by: David Rowley
Discussion: https://postgr.es/m/CAAKRu_bvkhka0CZQun28KTqhuUh5ZqY=_T8QEqZqOL02rpi2bw@mail.gmail.com

Files

PathChange+/−
src/backend/access/heap/heapam.c modified +102 −121

Discussion