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

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid calling PageGetSpecialPointer() on an all-zeros page.
Date: 2015-07-27 15:15:15
Message-ID: E1ZJk7X-0001dD-Bf@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2015-07-27 15:36:51 Re: pgsql: Fix handling of all-zero pages in SP-GiST vacuum.
Previous Message Heikki Linnakangas 2015-07-27 08:53:18 pgsql: Remove false comment about speculative insertion.