• Tom Lane's avatar
    Modify MoveOfflineLogs/InstallXLogFileSegment to avoid O(N^2) behavior · 61b86142
    Tom Lane authored
    when recycling a large number of xlog segments during checkpoint.
    The former behavior searched from the same start point each time,
    requiring O(checkpoint_segments^2) stat() calls to relocate all the
    segments.  Instead keep track of where we stopped last time through.
    61b86142
xlog.c 163 KB