pgsql: Reduce code duplication between heapgettup and heapgettup_pagemo

From: David Rowley <drowley(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Reduce code duplication between heapgettup and heapgettup_pagemo
Date: 2023-02-03 03:21:13
Message-ID: E1pNmdU-001K3n-2Q@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Reduce code duplication between heapgettup and heapgettup_pagemode

The code to get the next block number was exactly the same between these
two functions, so let's just put it into a helper function and call that
from both locations.

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7ae0ab0ad9704b10400a611a9af56c63304c27a5

Modified Files
--------------
src/backend/access/heap/heapam.c | 186 +++++++++++++++++++--------------------
1 file changed, 91 insertions(+), 95 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2023-02-03 05:56:54 pgsql: ci: Use windows VMs instead of windows containers
Previous Message Amit Kapila 2023-02-03 03:13:03 pgsql: Optimize the origin drop functionality.