From: Nathan Bossart <nathandbossart@gmail.com>
To: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Cc: pgsql-hackers@postgresql.org
Cc: alvherre@kurilemu.de
Subject: Re: REPACK (CONCURRENTLY) doesn't check the table AM
Date: Thu, 27 Aug 2026 14:16:19 -0500
Message-ID: <apCNA1SVvjul9kOf@nathan> (raw)
In-Reply-To: <CALj2ACUGsWsWB-OvKxxWneRZLB4fVuQ9C2OEvzA-0hPe8VJXsg@mail.gmail.com>
References: <apBkixO4xAGFoiT3@nathan>
<CALj2ACUGsWsWB-OvKxxWneRZLB4fVuQ9C2OEvzA-0hPe8VJXsg@mail.gmail.com>
On Thu, Aug 27, 2026 at 11:59:10AM -0700, Bharath Rupireddy wrote:
> On Thu, Aug 27, 2026 at 9:23 AM Nathan Bossart <nathandbossart@gmail.com> wrote:
>> REPACK (CONCURRENTLY) replays changes by decoding them from WAL, so it
>> needs the table AM to be logically decodable, but
>> check_concurrent_repack_requirements() doesn't check that. Should it be
>> restricted to heap for v19?
>
> Logical decoding doesn't check the table AM type, but goes ahead and
> decodes the WAL records (for that matter, none of CLUSTER, VACUUM
> FULL, and REPACK have checks on table AM. They hand off at some point
> to the table AM layer). I'm not sure if gating it just for concurrent
> repack is the right choice. Is it that we want to have it just for
> concurrent repack since it's new code with a new logical decoding
> plugin and we want some field reports of needing it for other table
> AMs?
If the other commands are similarly broken, then perhaps this isn't a valid
open item for v19. But IIUC concurrent repack is the only one of the
commands you listed that depends on logical decoding, and if the table AM
doesn't support that, then it won't work properly.
--
nathan
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-hackers@postgresql.org
Cc: nathandbossart@gmail.com, bharath.rupireddyforpostgres@gmail.com, alvherre@kurilemu.de
Subject: Re: REPACK (CONCURRENTLY) doesn't check the table AM
In-Reply-To: <apCNA1SVvjul9kOf@nathan>
References: <apBkixO4xAGFoiT3@nathan> <CALj2ACUGsWsWB-OvKxxWneRZLB4fVuQ9C2OEvzA-0hPe8VJXsg@mail.gmail.com> <apCNA1SVvjul9kOf@nathan>
* 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