]> granicus.if.org Git - postgresql/commit
Reuse all-zero pages in GIN.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 27 Jul 2015 09:30:26 +0000 (12:30 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 27 Jul 2015 09:32:48 +0000 (12:32 +0300)
commit7658368cfd5b5a010e57f8eec6cc4c6e19ee635b
treec7afc9f9d1f85784e7e2d2f271135967edfab838
parentf4297f8c5fd457a54671947023f8b56237b952db
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.
src/backend/access/gin/ginvacuum.c