pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Álvaro Herrera <alvherre@kurilemu.de>
To: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Lock the TOAST table early in REPACK (CONCURRENTLY)
Date: Mon, 28 Sep 2026 17:23:34 +0200
Message-ID: <arqGBKSnn1sMfYaK@alvherre.pgsql> (raw)
In-Reply-To: <E1xBD31-00000001cLE-3okb@gemulon.postgresql.org>

On 2026-Sep-28, Álvaro Herrera wrote:

> Lock the TOAST table early in REPACK (CONCURRENTLY)
> 
> The decoding worker records the relfilenumber of the TOAST table when it
> starts, and skips changes stored under any other one, but the TOAST
> table was not locked until the data copy began.  If VACUUM FULL rewrote
> it while the worker was starting, concurrent updates of TOASTed columns
> were silently lost.

Oops, I used CheckRelationOidLockedByMe() assuming it does what its name
implies, which it doesn't.  Will fix.

-- 
Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/
"After a quick R of TFM, all I can say is HOLY CR** THAT IS COOL! PostgreSQL was
amazing when I first started using it at 7.2, and I'm continually astounded by
learning new features and techniques made available by the continuing work of
the development team."
Berend Tober, http://archives.postgresql.org/pgsql-hackers/2007-08/msg01009.php






view thread (3+ messages)

Message-ID: <arqGBKSnn1sMfYaK@alvherre.pgsql>
Permalink:  ../arqGBKSnn1sMfYaK@alvherre.pgsql/
Also on:    postgresql.org/message-id/arqGBKSnn1sMfYaK@alvherre.pgsql

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@kurilemu.de
  Subject: Re: pgsql: Lock the TOAST table early in REPACK (CONCURRENTLY)
  In-Reply-To: <arqGBKSnn1sMfYaK@alvherre.pgsql>
  References: <E1xBD31-00000001cLE-3okb@gemulon.postgresql.org> <arqGBKSnn1sMfYaK@alvherre.pgsql>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox