BUG #19519: REPACK can fail due to missing chunk for toast value - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #19519: REPACK can fail due to missing chunk for toast value
Date
Msg-id 19519-fe02d8ff679d834d@postgresql.org
Whole thread
Responses Re: BUG #19519: REPACK can fail due to missing chunk for toast value
List pgsql-bugs
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.





pgsql-bugs by date:

Previous
From: Ayush Tiwari
Date:
Subject: Re: Fw:Re: Fw: ltree_compare in contrib/ltree/ltree_op.c overflows int32 on deep ltree comparisons, returning the wrong sign
Next
From: PG Bug reporting form
Date:
Subject: BUG #19520: PANIC when concurrently manipulating stored procedures with pg_stat_statements and track_functions =