REPACK CONCURRENTLY: fix processing of toasted tuples

Álvaro Herrera <alvherre@kurilemu.de>

Commit: 6ca631b9901264b97c5b165e66edd3a85847ee0b
Author: Álvaro Herrera <alvherre@kurilemu.de>
Date: 2026-04-30T21:32:57Z
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

Discussion