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

From Heikki Linnakangas
Subject pgsql: Avoid calling PageGetSpecialPointer() on an all-zeros page.
Date
Msg-id E1ZJk7X-0001dD-Bf@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Reuse all-zero pages in GIN.
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix memory leak in xlogreader facility.