From: Nathan Bossart <nathandbossart@gmail.com>
To: Adam Lee <adam8157@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org, Antonin Houska <ah@cybertec.at>
Cc: Álvaro Herrera <alvherre@kurilemu.de>
Subject: Re: CLUSTER progress: wrong index_rebuild_count for tables with TOAST
Date: Thu, 27 Aug 2026 11:01:57 -0500
Message-ID: <apBfdVNriIEN-RPO@nathan> (raw)
In-Reply-To: <aj4gJQMba0kClQmj@Mac>
References: <aj4gJQMba0kClQmj@Mac>
On Fri, Jun 26, 2026 at 02:45:57PM +0800, Adam Lee wrote:
> When I run CLUSTER (or VACUUM FULL / REPACK) on a table that has a TOAST
> table, pg_stat_progress_cluster shows a wrong index_rebuild_count. During
> the heap scan the count is already equal to the number of indexes, but it
> should be 0 until the indexes are rebuilt at the end.
Hm. Isn't this a regression in v19 caused by commit 28d534e?
--
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, adam8157@gmail.com, ah@cybertec.at, alvherre@kurilemu.de
Subject: Re: CLUSTER progress: wrong index_rebuild_count for tables with TOAST
In-Reply-To: <apBfdVNriIEN-RPO@nathan>
References: <aj4gJQMba0kClQmj@Mac> <apBfdVNriIEN-RPO@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