• Alvaro Herrera's avatar
    Remove direct uses of ItemPointer.{ip_blkid,ip_posid} · ce96ce60
    Alvaro Herrera authored
    There are no functional changes here; this simply encapsulates knowledge
    of the ItemPointerData struct so that a future patch can change things
    without more breakage.
    
    All direct users of ip_blkid and ip_posid are changed to use existing
    macros ItemPointerGetBlockNumber and ItemPointerGetOffsetNumber
    respectively.  For callers where that's inappropriate (because they
    Assert that the itempointer is is valid-looking), add
    ItemPointerGetBlockNumberNoCheck and ItemPointerGetOffsetNumberNoCheck,
    which lack the assertion but are otherwise identical.
    
    Author: Pavan Deolasee
    Discussion: https://postgr.es/m/CABOikdNnFon4cJiL=h1mZH3bgUeU+sWHuU4Yr8AB=j3A2p1GiA@mail.gmail.com
    ce96ce60
ginpostinglist.c 10.5 KB