agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Álvaro Herrera <alvherre@kurilemu.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: REPACK CONCURRENTLY: fix processing of toasted tuples
Date: Thu, 30 Apr 2026 21:54:39 +0000
Message-ID: <E1wIZLC-003VlP-1T@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6ca631b9901264b97c5b165e66edd3a85847ee0b

Modified Files
--------------
src/backend/commands/repack.c                      |   2 +-
.../injection_points/expected/repack_toast.out     | 109 ++++++++++----
.../injection_points/specs/repack_toast.spec       | 158 +++++++++++++++------
3 files changed, 199 insertions(+), 70 deletions(-)



Message-ID: <E1wIZLC-003VlP-1T@gemulon.postgresql.org>
Permalink:  ../E1wIZLC-003VlP-1T@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wIZLC-003VlP-1T@gemulon.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-committers@postgresql.org
  Cc: alvherre@kurilemu.de, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: REPACK CONCURRENTLY: fix processing of toasted tuples
  In-Reply-To: <E1wIZLC-003VlP-1T@gemulon.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