public inbox for [email protected]
help / color / mirror / Atom feedFrom: Alvaro Herrera <[email protected]>
To: Amit Kapila <[email protected]>
Cc: Antonin Houska <[email protected]>
Cc: Mihail Nikalayeu <[email protected]>
Cc: Andres Freund <[email protected]>
Cc: Srinath Reddy Sadipiralla <[email protected]>
Cc: Matthias van de Meent <[email protected]>
Cc: Pg Hackers <[email protected]>
Cc: Robert Treat <[email protected]>
Subject: Re: Adding REPACK [concurrently]
Date: Wed, 13 May 2026 18:58:14 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAA4eK1J=4ODBgxet2RaxmGwHx9h15-4SQBnm38M+05=KM92UvQ@mail.gmail.com>
Hello Amit,
On 2026-May-13, Amit Kapila wrote:
> So now the question is where do we go from here. I am not confident
> that the current code to achieve db-specific snapshots in logical
> decoding is the best possible solution both because of the drawbacks
> (like we won't be able to enable this on standby) and inefficiencies
> pointed out by me in this and previous emails in this work.
This is a fair question. I don't think we have time to go much further
on this aspect before beta 1, so we either accept this patch, fix the
inefficiencies you pointed out and keep db-specific snapshots, or we
revert db-specific snapshots and go back to the standard snapshot-taking
technique for REPACK in 19 and see what we can improve for 20.
Now, the worst consequence of reverting db-specific snapshots is that
you will only be able to run REPACK in a single database at a time
(because any subsequent REPACK will have to wait until the first one
finishes before being able to get its snapshot). In most normal cases
this is probably not a big deal. But if you have a multitenant system,
and you want your users to be able to run REPACK on their tables, you
may be a bit screwed. So I hesitate to just go and revert it without
offering those people any alternative.
(It's also possible that being unable to run more than one REPACK at a
time is not so big a deal. After all, it's supposed to be an infrequent
operation. And users probably don't or shouldn't have multi-terabyte
tables in multitenant databases anyway.)
I'm not sure I understand the point of the standby. I mean, you can't
run REPACK on the standby anyway, so I don't see this as a very
problematic restriction. Do you have other reasons for wanting a
db-specific snapshot in a standby?
--
Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/
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: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: Re: Adding REPACK [concurrently]
In-Reply-To: <[email protected]>
* 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