Re: BUG #19496: Assert("ItemPointerIsValid(pointer)") when using pageinspect

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: s(dot)lyubimov(at)postgrespro(dot)ru
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19496: Assert("ItemPointerIsValid(pointer)") when using pageinspect
Date: 2026-05-27 13:57:37
Message-ID: 465323.1779890257@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> I found an assertion failure in pageinspect.

> SQL:
> CREATE EXTENSION IF NOT EXISTS pageinspect;
> WITH page AS (
> SELECT set_byte(
> set_byte(
> set_byte(
> set_byte(
> set_byte(
> set_byte(
> set_byte(
> set_byte(decode(repeat('00', 8192), 'hex'),
> 12, 40),
> 14, 248),
> 15, 31),
> 16, 248),
> 17, 31),
> 18, 4),
> 19, 32),
> 8190, 131) AS p
> )
> SELECT * FROM gin_leafpage_items((SELECT p FROM page));

Does that WITH actually construct a valid GIN page image?
I don't think we make any guarantee that pageinspect
won't crash on bad data.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Masahiko Sawada 2026-05-28 00:02:09 Re: uuidv7 improperly accepts dates before 1970-01-01
Previous Message Andrey Borodin 2026-05-27 12:48:51 Re: 16.14 regression: startup process self-deadlocks during multixact WAL replay in RecordNewMultiXact