pgsql: Reuse all-zero pages in GIN. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Reuse all-zero pages in GIN.
Date
Msg-id E1ZJk7X-0001di-Dp@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/7658368cfd5b5a010e57f8eec6cc4c6e19ee635b

Modified Files
--------------
src/backend/access/gin/ginvacuum.c |    2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Remove false comment about speculative insertion.
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix handling of all-zero pages in SP-GiST vacuum.