Re: BUG #19496: Assert("ItemPointerIsValid(pointer)") when using pageinspect - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #19496: Assert("ItemPointerIsValid(pointer)") when using pageinspect
Date
Msg-id 465323.1779890257@sss.pgh.pa.us
Whole thread
In response to BUG #19496: Assert("ItemPointerIsValid(pointer)") when using pageinspect  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
PG Bug reporting form <noreply@postgresql.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



pgsql-bugs by date:

Previous
From: Andrey Borodin
Date:
Subject: Re: 16.14 regression: startup process self-deadlocks during multixact WAL replay in RecordNewMultiXact
Next
From: Michael Paquier
Date:
Subject: Re: BUG #19490: Streaming standby on 16.14 stops applying WAL on MultiXactOffsetSLRU when primary is 16.8