• Tom Lane's avatar
    Resurrect heap_deformtuple(), this time implemented as a singly nested · 8f2ea8b7
    Tom Lane authored
    loop over the fields instead of a loop around heap_getattr.  This is
    considerably faster (O(N) instead of O(N^2)) when there are nulls or
    varlena fields, since those prevent use of attcacheoff.  Replace loops
    over heap_getattr with heap_deformtuple in situations where all or most
    of the fields have to be fetched, such as printtup and tuptoaster.
    Profiling done more than a year ago shows that this should be a nice
    win for situations involving many-column tables.
    8f2ea8b7
tuptoaster.c 30.9 KB