Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x1znf-005X4x-1i for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Sep 2026 05:15:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x1znZ-00FzTv-38 for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Sep 2026 05:15:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x1znZ-00FzTm-1p for pgsql-hackers@lists.postgresql.org; Thu, 03 Sep 2026 05:15:41 +0000 Received: from fout-a6-smtp.messagingengine.com ([103.168.172.149]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x1znX-00000002fTu-12qj for pgsql-hackers@lists.postgresql.org; Thu, 03 Sep 2026 05:15:41 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id 2E54BEC021F; Thu, 3 Sep 2026 01:15:36 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Thu, 03 Sep 2026 01:15:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1788412536; x=1788498936; bh=5lVywNHmLL FUBDMqYEbg7ON9MrxHbJTv7MmkCBcNmHI=; b=XznKRjbYM2iSoydgXGYVDgEIh3 s738+w8RxlSrwVCuaofUVEzvbYNWDkINPzX2T/1u/jUPFyg9qP0hYJapXp0godxq nP32hSRknAuwRiEW7BOfxNDyevKnhtnjAKLBkYYKrpez9eT71ASRoCOXV8i/6bzQ 2SNV2kPLUu0PuT4dKi4GunKhuVgxpEpSlvVpBjHKeh6ID7dVmq0wPxEuZcYKYPnu 1j4CFORaFzJTyppQ7sl1fTG+vqVqvTg044vxueEhhEOA5+aQCzpi1W25eS/0Lm9o 2ekuY1CJ/axHwVLQ5l1EndlwFuDYoVOs1v41SFOd9ldOZgKAptUYM4vvk96Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1788412536; x=1788498936; bh=5lVywNHmLLFUBDMqYEbg7ON9MrxHbJTv7Mm kCBcNmHI=; b=wVkjEQBiztnolo5zM06/QX+DvPp+WwqsseBjG+2wZeKVIc6GYPd p99jrj6REHoV4wiTZEWLfjodpKmrcn+U/OBaNy2JC6UtPKNFpLmeB/YxcMjMObGT gIkagwpfWqGZ/DTgnmJIpPRLM/U85PPjVhfOdY6yAiNIsn7Uj1GegTkZbQdAkidu QMbaOJXLF2mGcpyeBmfFyHnWEt/yt0R4vQjetVuAHgEhZ+o+DIwU8EwM8L6P6Fpw haIi6Q6lqsmWUNQR1kJiVbwBJLvyrm8QJeIfrFYa1yLZsBggJgr97gTkYvGla/4D HLpfUq0V3TlLDiOjoYKVVaR3kYCJk6IDUqw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTFW5nYBuSHdnfzOKkuZuGvCMNZF0xJeiQNdZs6ctemJbSl0ROTCn3UqIiBQJK/RPQ L5qp+pPvtf3QKE4EKFzOzuDijHvKyHf6d1LfFHBkvfvyhD8kOadlfzGlJfhQhweTWDz4hK DjZ0sQ2KukVQ/LEbRo5z1iyaQwkoiwLMtIPc70mont7fsu3a9pCnFuHu99fW37+BQ4kS6A p0neTDJFHWAJdez1CitRHcUpiq/SQQbRdueBIAzbswSr45hp6Ngs7fifVWvmnYhBtGUKLZ xlgMoGMxjXo47BVU11eKiIkE9W/TWLQDmuqxzt7xryT5NB+4oXV/OlztbUU5vZ+cn5PFsB 0fDLoAcmpeTcOOtOijPxGf8uTvlYEJbOsh1n7jDNCIpSEHVqqFaoIXskyNl+E21ESk3YIy OuJFWQVR+ujCQjOKjbRwLKue/wvbAf+ZTqGg3CSjadzWD+over8cHtmNTZ55jD9lbkp/eX WZHsV+iSSfg1Jesgzdd4PMjSpBmS20TSLi5g/YuV/hBRWQiA1G4NWEMS90kdQCNrcNc8hs RVQa/6AmxdYEgddSBFFyCr3zfXjarW/XKM63WtTwnvPlwesg+Qt/Mu7vZiLQfmgurEikdn Mn2DxitDIFVQbDcT0GDT/9H+6GYtLf/9tYaGObSHSnlBMI1oh6QL07zLcLTw X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 3 Sep 2026 01:15:34 -0400 (EDT) Date: Thu, 3 Sep 2026 14:15:30 +0900 From: Michael Paquier To: Bharath Rupireddy Cc: Sami Imseih , PostgreSQL Hackers , SATYANARAYANA NARLAPURAM Subject: Re: Report index currently being vacuumed in pg_stat_progress_vacuum Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VsytKOFATuVsqQ2J" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --VsytKOFATuVsqQ2J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Sep 02, 2026 at 07:23:00PM -0700, Bharath Rupireddy wrote: > Thanks Michael for the off-list chat. I agree that emitting leader_pid > via the vacuum progress report is information bloat, since one can > easily identify the workers for a given leader by looking at the > database OID and relation name, and if needed, can also join with > pg_stat_activity.leader_pid. So, I removed leader_pid in the 0001 > patch. Full disclosure. I have discussed this patch set a bit with Bharath. The discussion can be summed up like: - leader_pid in the progress view with a JOIN to pg_stat_activity feels like bloating the view with duplicated information. - The database OID, the relation OID and the index OID gain in visibility by being specified in the lines for the workers. Note: it looks like we are doing so based on your output posted upthread, missed that during our discussion, initially. - The two new fields for total index blocks and index blocks processed make more sense than trying to reuse the heap attributes because a leader may do itself some of the cleanup. Multiple passes are less likely lately, but could still be possible, and we want to know where the leader is at for the heap part while working on the indexes. Reading through v5-0001 and v5-0002, it looks like all these check boxes are ticked. In terms of review clarity, splitting both patches slightly helps, but I'd rather merge both things together at the end: the first patch gains a lot in value thanks to the second patch where the two block aggregates are added. Perhaps I am missing something else? In this case, please feel free to overwrite my words.. -- Michael --VsytKOFATuVsqQ2J Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmqZAnIACgkQnvQgOdby QH1VjA//axizXciHPZbdb3FOLJkKx/XYzCXCyoOzZu5kdfsyTn+hcwXzACRinQpq p/1gbOV5OOvu8UZexqkPEYnwiTw786GWdawDqtXRNV8Ke0SNHFBNs54bCnb4fEhn TgXzZydXKA1mXIU2iMwbMP9mATsBa9KmtN4kGpnKwqroEPKtJ+2cKu9J44v91bPV Q+v9VyPHkI8nT9a5lB2uTqta53XmLdlqKNl+fzpfHUpB+au/t8jsgqFlkEmlUfCV QfLaXB0uMZtCqlFYRoiRfruwDS+2vN7RQcYD9V4uuWjzsdPnBB6pNcpeiHlzy6rB j0/DA1iYnDgp4oFWylV90pjCcIzlQKpyfxsG62m8fehx0BgiwnoGQWSQ401TjygH Olg+W9LCW7X6K56Cn3Uh++q/Eqm67oH5r1quvQeWRKGn7wo6JnIm5+AtbSgJ1QWN DD0ezhkxFlOECM+l2FP0Eb6pOqsJf4Y+rc1BWRP3Fd3eEEF76pa0NyodGq1elYgt OY3sdcGYLm1Ujx3HvKp7+RKmt3GuzxA2I3XFAAzSq9aIXwUMPaOPrcJWlGi9TjU8 hvc0sYUhGJ+P+lV5CK8BnoXpiEDlDR1tubwX3bEnncJ6Eju9Uj+7hpxuBjNEDlBn gHmjr92yweruRSvXwlhIOoN0AdTFOMeMleI7cqSfu69zJNkdE/Q= =3DTS -----END PGP SIGNATURE----- --VsytKOFATuVsqQ2J--