Skip to content
Snippets Groups Projects
  • Tom Lane's avatar
    68893035
    Redefine the lp_flags field of item pointers as having four states, rather · 68893035
    Tom Lane authored
    than two independent bits (one of which was never used in heap pages anyway,
    or at least hadn't been in a very long time).  This gives us flexibility to
    add the HOT notions of redirected and dead item pointers without requiring
    anything so klugy as magic values of lp_off and lp_len.  The state values
    are chosen so that for the states currently in use (pre-HOT) there is no
    change in the physical representation.
    68893035
    History
    Redefine the lp_flags field of item pointers as having four states, rather
    Tom Lane authored
    than two independent bits (one of which was never used in heap pages anyway,
    or at least hadn't been in a very long time).  This gives us flexibility to
    add the HOT notions of redirected and dead item pointers without requiring
    anything so klugy as magic values of lp_off and lp_len.  The state values
    are chosen so that for the states currently in use (pre-HOT) there is no
    change in the physical representation.