Fujii Masao <[email protected]> writes:
> On Wed, Nov 25, 2026 at 1:31 AM Tom Lane <[email protected]> wrote:
>> You could maybe say that we
>> only reject it with CONCURRENTLY, but that feels a little weird;
>> I'd just do it always.

> If we consider REPACK without CONCURRENTLY basically equivalent to
> CLUSTER or VACUUM FULL, both of which are allowed in read-only
> transactions, isn't it more consistent to allow it and reject only
> REPACK with CONCURRENTLY?

If you want one of those commands, you can use one of those commands.
ISTM REPACK is the swiss army knife of table-maintenance commands,
so it is going to have some variants that can work inside a
transaction and some that can't.  Expecting psql to keep track of
which is which seems like a recipe for future bugs to me (even if
we had a 100% solution for that today, which we do not).

                        regards, tom lane


Reply via email to