pgsql: Refactor heapam.c adding heapgettup_initial_block function

From: David Rowley <drowley(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Refactor heapam.c adding heapgettup_initial_block function
Date: 2023-02-02 01:19:26
Message-ID: E1pNOG5-00193y-5V@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fb1a59de0c52609653166aafc6ce8679a9cfe54b

Modified Files
--------------
src/backend/access/heap/heapam.c | 223 ++++++++++++++++++---------------------
1 file changed, 102 insertions(+), 121 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robins Tharakan 2023-02-02 01:50:09 Re: pgsql: Do assorted mop-up in the planner.
Previous Message Peter Eisentraut 2023-02-01 17:15:00 pgsql: meson: Fix typo in pkgconfig generation