From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix incorrect computations of length of null bitmap in pageinspe
Date: Thu, 04 Jan 2018 19:59:13 +0000
Message-ID: <E1eXBfV-0007p2-6X@gemulon.postgresql.org> (raw)
Fix incorrect computations of length of null bitmap in pageinspect.
Instead of using our standard macro for this calculation, this code
did it itself ... and got it wrong, leading to incorrect display of
the null bitmap in some cases. Noted and fixed by Maksim Milyutin.
In passing, remove a uselessly duplicative error check.
Errors were introduced in commit d6061f83a; back-patch to 9.6
where that came in.
Maksim Milyutin, reviewed by Andrey Borodin
Discussion: https://postgr.es/m/ec295792-a69f-350f-6287-25a20e8f31d5@gmail.com
Branch
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/5ad1b1728767dbf0209b35072db372d19bc032f7
Modified Files
--------------
contrib/pageinspect/expected/page.out | 17 +++++++++++++++++
contrib/pageinspect/heapfuncs.c | 15 +++++----------
contrib/pageinspect/sql/page.sql | 8 ++++++++
3 files changed, 30 insertions(+), 10 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Fix incorrect computations of length of null bitmap in pageinspe
In-Reply-To: <E1eXBfV-0007p2-6X@gemulon.postgresql.org>
References: <E1eXBfV-0007p2-6X@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox