Thread: pgsql: Avoid calling PageGetSpecialPointer() on an all-zeros page.

pgsql: Avoid calling PageGetSpecialPointer() on an all-zeros page.

From
Heikki Linnakangas
Date:
Avoid calling PageGetSpecialPointer() on an all-zeros page.

That was otherwise harmless, but tripped the new assertion in
PageGetSpecialPointer().

Reported by Amit Langote. Backpatch to 9.5, where the assertion was added.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/65c384c5abee7df6d27f98135790ea24c1b9578b

Modified Files
--------------
src/backend/access/nbtree/nbtree.c |    6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)