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

From Heikki Linnakangas
Subject pgsql: Don't assume that PageIsEmpty() returns true on an all-zeros pag
Date
Msg-id E1ZJkkg-0002Mg-9m@gemulon.postgresql.org
Whole thread Raw
List 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_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/588f50f851cdcb3da0755c3ad17a3427f1e57914

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


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Don't assume that PageIsEmpty() returns true on an all-zeros pag
Next
From: Heikki Linnakangas
Date:
Subject: Re: pgsql: Fix handling of all-zero pages in SP-GiST vacuum.