Reuse all-zero pages in GIN.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: bafe3b00730184e7f9860cbab545f8b21c1dc70b
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2015-07-27T09:32:30Z
Releases: 9.3.10
Reuse all-zero pages in GIN.

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.

Files

PathChange+/−
src/backend/access/gin/ginvacuum.c modified +1 −1