Don't assume that PageIsEmpty() returns true on an all-zeros page.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 27 Jul 2015 15:54:09 +0000 (18:54 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 27 Jul 2015 15:54:09 +0000 (18:54 +0300)
commit820d1ced1b308702b3f811647810b4030f974d89
treeb3d26eb27e7b88aaae0fafdefabd8436ad878f59
parent61a65c53bd3e48e7ff7661a528d1791dfd956957
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.
src/backend/access/spgist/spgvacuum.c