pgsql: Reuse all-zero pages in GIN.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Reuse all-zero pages in GIN.
Date: 2015-07-27 15:15:15
Message-ID: E1ZJk7X-0001dl-Du@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/a471700e3cd3c38529ace909984ef10562888084

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

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2015-07-27 15:36:51 Re: pgsql: Fix handling of all-zero pages in SP-GiST vacuum.
Previous Message Heikki Linnakangas 2015-07-27 08:53:18 pgsql: Remove false comment about speculative insertion.