bug in pageinspect's "tuple data" feature - Mailing list pgsql-hackers

From Alvaro Herrera
Subject bug in pageinspect's "tuple data" feature
Date
Msg-id 20201121193206.GA32459@alvherre.pgsql
Whole thread Raw
Responses Re: bug in pageinspect's "tuple data" feature  (Heikki Linnakangas <hlinnaka@iki.fi>)
Re: bug in pageinspect's "tuple data" feature  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
If you have a sufficiently broken data page, pageinspect throws an
error when trying to examine the page:

ERROR:  invalid memory alloc request size 18446744073709551451

This is pretty unhelpful; it would be better not to try to print the
data instead of dying.  With that, at least you can know where the
problem is.

This was introduced in d6061f83a166 (2015).  Proposed patch to fix it
(by having the code print a null "data" instead of dying) is attached.

-- 
Álvaro Herrera

Attachment

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Connection using ODBC and SSL
Next
From: Peter Geoghegan
Date:
Subject: Re: Different results between PostgreSQL and Oracle for "for update" statement