Fix: VACUUM FULL or CREATE INDEX fails with error "missing chunk number 0 for toast value XXX"

Edit
ID 6824
Title Fix: VACUUM FULL or CREATE INDEX fails with error "missing chunk number 0 for toast value XXX"
CI (CFBot) Summary
Stats (from CFBot) Patch count: 1, First patch: +110−0, All patches: +110−0
Tags Bugfix
Created 2026-06-01 05:00:45
Last modified 2026-07-07 22:19:39 (1 week ago)
Latest email 2026-07-14 23:45:41 (4 hours ago)
Status
PG20-1 (2026-07-01 – 2026-07-31): Needs review
Target version 20
Authors Michael Paquier (michael-kun), Ekaterina Testova (e.testova)
Reviewers Become reviewer
Committer
Links
Emails
VACUUM FULL or CREATE INDEX fails with error: missing chunk number 0 for toast value XXX
First at 2026-05-18 04:20:55 by Тестова Екатерина <e.testova at postgrespro.ru>
Latest at 2026-07-14 23:45:41 by Michael Paquier <michael at paquier.xyz>
Latest attachment (0001-Add-injection-point-test-for-TOAST-heap-vacuum-horiz.patch) at 2026-07-14 09:45:11 from Andrey Borodin <x4mmm at yandex-team.ru>
    Attachment (0001-Add-injection-point-test-for-TOAST-heap-vacuum-horiz.patch) at 2026-07-14 09:45:11 from Andrey Borodin <x4mmm at yandex-team.ru> (Patch: Yes)
    Attachment (caching_oldest_xmin.patch) at 2026-05-18 04:20:55 from Тестова Екатерина <e.testova at postgrespro.ru> (Patch: Yes)
BUG #19519: REPACK can fail due to missing chunk for toast value
First at 2026-06-14 07:00:01 by PG Bug reporting form <noreply at postgresql.org>
Latest at 2026-07-09 10:08:43 by Konstantin Knizhnik <knizhnik at garret.ru>
Latest attachment (v4-0001-Fix-missing-chunk-errors-during-heap-rewrites-and.patch) at 2026-07-09 02:47:21 from Michael Paquier <michael at paquier.xyz>
    Attachment (v4-0001-Fix-missing-chunk-errors-during-heap-rewrites-and.patch) at 2026-07-09 02:47:21 from Michael Paquier <michael at paquier.xyz> (Patch: Yes)
    Attachment (v3-0001-Fix-missing-chunk-errors-during-heap-rewrites-and.patch) at 2026-07-08 12:00:33 from Heikki Linnakangas <hlinnaka at iki.fi> (Patch: Yes)
    Attachment (v3-0001-Fix-missing-chunk-errors-during-heap-rewrites-and.patch) at 2026-07-07 05:21:56 from Michael Paquier <michael at paquier.xyz> (Patch: Yes)
    Attachment (v2-0001-Fix-missing-chunk-errors-during-heap-rewrites-and.patch) at 2026-07-06 06:36:39 from Michael Paquier <michael at paquier.xyz> (Patch: Yes)
    Attachment (v1-0001-Fix-missing-chunk-errors-during-heap-rewrites-by-ign.patch) at 2026-06-17 17:03:21 from Srinath Reddy Sadipiralla <srinath2133 at gmail.com> (Patch: Yes)
History
When Who What
2026-07-08 12:10:33 CFbot Patch does not need rebase anymore
2026-07-08 08:09:27 CFbot Patch needs rebase
2026-07-08 01:44:30 CFbot Patch does not need rebase anymore
2026-07-08 01:10:27 CFbot Patch needs rebase
2026-07-07 22:29:31 CFbot Patch does not need rebase anymore
2026-07-07 22:19:39 Michael Paquier (michael-kun) Changed targetversion to 20
2026-07-07 22:19:32 Michael Paquier (michael-kun) Changed authors to Michael Paquier (michael-kun), Ekaterina Testova (e.testova)
2026-07-07 22:19:12 Michael Paquier (michael-kun) Attached mail thread 19519-fe02d8ff679d834d@postgresql.org
2026-06-01 05:02:19 Ekaterina Testova (e.testova) Changed name to Fix: VACUUM FULL or CREATE INDEX fails with error "missing chunk number 0 for toast value XXX"
2026-06-01 05:01:29 CFbot Patch needs rebase
2026-06-01 05:00:45 Ekaterina Testova (e.testova) Attached mail thread 1779078055.630771314@fmail2.qdit
2026-06-01 05:00:45 Ekaterina Testova (e.testova) Created patch record
Edit