agora inbox for pgsql-committers@postgresql.org
help / color / mirror / Atom feedFrom: Álvaro Herrera <alvherre@kurilemu.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fail REPACK in presence of !indisready indexes
Date: Sun, 13 Sep 2026 12:20:26 +0000
Message-ID: <E1x5jC6-000000008nb-3PU0@gemulon.postgresql.org> (raw)
Fail REPACK in presence of !indisready indexes
Like VACUUM FULL, non-concurrent REPACK would try to rebuild such
indexes, which can sometimes succeed. Concurrent REPACK would however
fail. The inconsistency is not good, so make them both throw an error
quickly to force the user to make a decision on those indexes (most
likely, drop them).
Author: Álvaro Herrera <alvherre@kurilemu.de>
Reported-by: Zsolt Parragi <zsolt.parragi@percona.com>
Suggested-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: https://postgr.es/m/CAN4CZFO5A3YE0Dd-bn7eKrB20pECO3=U0wKg1z2rO=DxgWJJHQ@mail.gmail.com
Branch
------
REL_19_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/e14a2354d9f7e44b0ffcaeaf187aa475e3e7d11b
Modified Files
--------------
contrib/test_decoding/expected/repack.out | 16 +++++++
contrib/test_decoding/sql/repack.sql | 8 ++++
src/backend/commands/repack.c | 71 +++++++++++++++++++++++++++++++
3 files changed, 95 insertions(+)
view thread (2+ messages) latest in thread
Message-ID: <E1x5jC6-000000008nb-3PU0@gemulon.postgresql.org>
Permalink: ../E1x5jC6-000000008nb-3PU0@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1x5jC6-000000008nb-3PU0@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: Fail REPACK in presence of !indisready indexes
In-Reply-To: <E1x5jC6-000000008nb-3PU0@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