Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wSElR-0033IM-1J for pgsql-bugs@arkaria.postgresql.org; Wed, 27 May 2026 13:57:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wSElP-008S7u-1H for pgsql-bugs@arkaria.postgresql.org; Wed, 27 May 2026 13:57:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wSElP-008S7l-0T for pgsql-bugs@lists.postgresql.org; Wed, 27 May 2026 13:57:40 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wSElO-000000011Nv-21T2 for pgsql-bugs@lists.postgresql.org; Wed, 27 May 2026 13:57:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 64RDvbN0465324; Wed, 27 May 2026 09:57:37 -0400 From: Tom Lane To: s.lyubimov@postgrespro.ru cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19496: Assert("ItemPointerIsValid(pointer)") when using pageinspect In-reply-to: <19496-3472e9cce4a93d76@postgresql.org> References: <19496-3472e9cce4a93d76@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Wed, 27 May 2026 05:24:37 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <465322.1779890257.1@sss.pgh.pa.us> Date: Wed, 27 May 2026 09:57:37 -0400 Message-ID: <465323.1779890257@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form 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