agora inbox for pgsql-hackers@postgresql.org  
help / color / mirror / Atom feed
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






view thread (6+ messages)  latest in thread

Message-ID: <apBfdVNriIEN-RPO@nathan>
Permalink:  ../apBfdVNriIEN-RPO@nathan/
Also on:    postgresql.org/message-id/apBfdVNriIEN-RPO@nathan

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-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>

* 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