agora inbox for pgsql-bugs@postgresql.org  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: exclusion@gmail.com
Subject: BUG #19519: REPACK can fail due to missing chunk for toast value
Date: Sun, 14 Jun 2026 07:00:01 +0000
Message-ID: <19519-fe02d8ff679d834d@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      19519
Logged by:          Alexander Lakhin
Email address:      exclusion@gmail.com
PostgreSQL version: 19beta1
Operating system:   Ubuntu 24.04
Description:        

The following script:
createdb db1
createdb db2

cat << EOF | psql db1
SET default_statistics_target = 1000;
CREATE TABLE t(i int, t text);
INSERT INTO t SELECT 1, g::text FROM generate_series(1, 50000) g;
ANALYZE t;
EOF

cat << EOF | psql db2 &
BEGIN;
CREATE TABLE t(i int);
SELECT pg_sleep(3);
EOF

sleep 1

cat << EOF | psql db1
DROP TABLE t;
VACUUM pg_toast.pg_toast_2619;
REPACK;
EOF
wait

triggers:
ERROR:  missing chunk number 0 for toast value 16393 in pg_toast_2619

Reproduced starting from ac58465e0.







view thread (26+ messages)  latest in thread

Message-ID: <19519-fe02d8ff679d834d@postgresql.org>
Permalink:  ../../19519-fe02d8ff679d834d@postgresql.org/
Also on:    postgresql.org/message-id/19519-fe02d8ff679d834d@postgresql.org

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, exclusion@gmail.com
  Subject: Re: BUG #19519: REPACK can fail due to missing chunk for toast value
  In-Reply-To: <19519-fe02d8ff679d834d@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox