REPACK CONCURRENTLY: fix processing of toasted tuples
Álvaro Herrera <alvherre@kurilemu.de>
REPACK CONCURRENTLY: fix processing of toasted tuples In order to process tuples inserted or updated while REPACK executes, we write those tuples to disk and later restore them; however, some forms of toasted tuples were not being processed correctly. Fix that. Also expand the tests a bit for better coverage. Author: Satya Narlapuram <satyanarlapuram@gmail.com> Author: Antonin Houska <ah@cybertec.at> Reviewed-by: Chao Li <li.evan.chao@gmail.com> Discussion: https://postgr.es/m/CAHg+QDeXb9HM2VGKXQedyCp52GzajJK5KOUdNi6oLjsS0nerQw@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/repack.c | modified | +1 −1 |
| src/test/modules/injection_points/expected/repack_toast.out | modified | +85 −24 |
| src/test/modules/injection_points/specs/repack_toast.spec | modified | +113 −45 |
Discussion
- [PATCH] Compressed TOAST data corruption with REPACK CONCURRENTLY 10 messages · 2026-04-16 → 2026-04-30