pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix incorrect computations of length of null bitmap in pageinspe 3+ messages / 1 participants [nested] [flat]
* pgsql: Fix incorrect computations of length of null bitmap in pageinspe @ 2018-01-04 19:59 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2018-01-04 19:59 UTC (permalink / raw) To: pgsql-committers 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 ------ master Details ------- https://git.postgresql.org/pg/commitdiff/39cfe86195f0b5cbc5fbe8d4e3aa6e2b0e322d0b 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(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Fix incorrect computations of length of null bitmap in pageinspe @ 2018-01-04 19:59 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2018-01-04 19:59 UTC (permalink / raw) To: pgsql-committers 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(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Fix incorrect computations of length of null bitmap in pageinspe @ 2018-01-04 19:59 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2018-01-04 19:59 UTC (permalink / raw) To: pgsql-committers 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 ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/ad592f4a6eed64358bf1ec8733c4f0be2a3c85dd Modified Files -------------- contrib/pageinspect/heapfuncs.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2018-01-04 19:59 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-01-04 19:59 pgsql: Fix incorrect computations of length of null bitmap in pageinspe Tom Lane <tgl@sss.pgh.pa.us> 2018-01-04 19:59 pgsql: Fix incorrect computations of length of null bitmap in pageinspe Tom Lane <tgl@sss.pgh.pa.us> 2018-01-04 19:59 pgsql: Fix incorrect computations of length of null bitmap in pageinspe Tom Lane <tgl@sss.pgh.pa.us>
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