• Heikki Linnakangas's avatar
    Reuse all-zero pages in GIN. · 33444517
    Heikki Linnakangas authored
    In GIN, an all-zeros page would be leaked forever, and never reused. Just
    add them to the FSM in vacuum, and they will be reinitialized when grabbed
    from the FSM. On master and 9.5, attempting to access the page's opaque
    struct also caused an assertion failure, although that was otherwise
    harmless.
    
    Reported by Jeff Janes. Backpatch to all supported versions.
    33444517
ginvacuum.c 18 KB