Refactor heapam.c adding heapgettup_initial_block function
authorDavid Rowley <drowley@postgresql.org>
Thu, 2 Feb 2023 01:17:15 +0000 (14:17 +1300)
committerDavid Rowley <drowley@postgresql.org>
Thu, 2 Feb 2023 01:17:15 +0000 (14:17 +1300)
commitfb1a59de0c52609653166aafc6ce8679a9cfe54b
tree64505a4eb098e4ebfd81293ecf0f0d8bf7498d3c
parent253432f42661fdd67d235252949e2838aa6421fd
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
src/backend/access/heap/heapam.c