• Tom Lane's avatar
    Reimplement free-space-map management as per recent discussions. · 391eb5e5
    Tom Lane authored
    Adjustable threshold is gone in favor of keeping track of total requested
    page storage and doling out proportional fractions to each relation
    (with a minimum amount per relation, and some quantization of the results
    to avoid thrashing with small changes in page counts).  Provide special-
    case code for indexes so as not to waste space storing useless page
    free space counts.  Restructure internal data storage to be a flat array
    instead of list-of-chunks; this may cost a little more work in data
    copying when reorganizing, but allows binary search to be used during
    lookup_fsm_page_entry().
    391eb5e5
guc.c 69.5 KB