pgsql: Don't assume that PageIsEmpty() returns true on an all-zeros pag

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Don't assume that PageIsEmpty() returns true on an all-zeros pag
Date: 2015-07-27 15:55:42
Message-ID: E1ZJkkg-0002Mi-9r@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Don't assume that PageIsEmpty() returns true on an all-zeros page.

It does currently, and I don't see us changing that any time soon, but we
don't make that assumption anywhere else.

Per Tom Lane's suggestion. Backpatch to 9.2, like the previous patch that
added this assumption.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/0abe9554fc793f05d5c7f18b4b6682d9f1154922

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

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2015-07-27 15:55:45 Re: pgsql: Fix handling of all-zero pages in SP-GiST vacuum.
Previous Message Heikki Linnakangas 2015-07-27 15:37:01 pgsql: Fix memory leak in xlogreader facility.