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 1wxBuG-002VGc-1n for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Aug 2026 23:10:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wxBuF-00AJE7-1m for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Aug 2026 23:10:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wxBuE-00AJDs-2u for pgsql-hackers@lists.postgresql.org; Thu, 20 Aug 2026 23:10:43 +0000 Received: from fhigh-a7-smtp.messagingengine.com ([103.168.172.158]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wxBuD-00000001eRB-0ocZ for pgsql-hackers@lists.postgresql.org; Thu, 20 Aug 2026 23:10:41 +0000 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfhigh.phl.internal (Postfix) with ESMTP id 5E08314001B9; Thu, 20 Aug 2026 19:10:40 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Thu, 20 Aug 2026 19:10:40 -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=fm3; t=1787267440; x=1787353840; bh=yZzbhwB/5W OvbMIKNDOIWX20nSDjGKbal6FGnbW13Uo=; b=G1t4YolGoLzYSpS0/HPvLNxw7p 4Vy86HYLj2GouJpMNOKiF/wpzZXa2xf+gudUHG0awzBCeOUQkPu5DugW8rtS9zOU ue0OH2XaQB+Z+bS10Crm1o9N1eje9TZXyaO3Bt7wjlf7HhJ+aCQAPzzkbVzeDWA5 kBlcnI8fykNPsZm5szOvhfFQZ7biOCl3SJ5IUqwg5y5YYs01AEet2RR69ad3ub+Z 5q2/MzEXafLd0Y7fZHkVKqBIC+f3/8DcsCL3DuPTbezz99DD850n231Sp8RiQQPK /UEA49NF3MMD5ti779V5EFI8WDKlR6fwU/zNmh6StatiMJo2Ip4SeeIWPyiA== 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=fm3; t= 1787267440; x=1787353840; bh=yZzbhwB/5WOvbMIKNDOIWX20nSDjGKbal6F GnbW13Uo=; b=mBQqPYacKbjFCX2NIqpFRhFV/U3peSnrxE+BB4V+HQmBrqTmVZa Nknn2mwNCUp3I7EdQ7FGIAEJ/NRmQiyCQaya008JpdgAqZYv8tikak1ZpQA1ss4E UZmVLJJlJ9kifjdJF5R6nICG/z8lxSjJdKuGi94YXEug1/erfb8EEOOx3pU8q30X VLYWK2ok/xYraHd2h2XeH/8u+Q1qMQQaXjznSZpvypBcLT7fw3N4u3zXuXtPjpwi wQNde+QySfTyJ14oZL8Q6HR4iPyvgXZrF4J46MWyUmdUSu4pyCqLSHxWU8kH8t9+ 72TA0FH9IKSXn44cdAIFUs4efMsT/FaeEoA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTFVVUZ0zdUwmRHcVz2EumGc0+nphJZ1a/BHCegJ5Fi2ldLnZxIJTTxdJ2+26Xf8QI wI1joG7tOcB826EznYGDlRl0M05L5QX3W/f9eP8DKfVXmQzD+0qsCwbvYtV0lnh6zuFV/L 7NLeUquLhSfKzu8ZAFgBjl2xUs9S54wFvHx8ovib8S8TV/JAO03OLtHwfJfXKFN4l1rn7y 8KOAlFPKKxkRU/h878YeEEavXmuRKQRycdPrsC9nJhML0EzaZoA9yvNXFcv3nL2+I68GnD q8ETxWBZMWPYnmDbhDS+1H0k8O9PU0uF5V2sFN6oIqDrtvZHgQ1NxsMlp0tNpGFbGEzIMQ vj2Urdk7USIePoH6rDD0f42/iIC1wYn2D3494sj37pXcy3tDy3V3IWI5he6EEcvzuFIpOp ra6TvQha7QnMz1j0qgMcU1mQxRLo8xY0M9kRkPiGhhBXhnUFopHn66abL/P2sr4kwu6w/X ARH+aHgDFQEC5VYvEkuQbuWIZoJg3BKG8HKo8RqyhtI9+7EyXV6qt7u+Qj7wELIECg7ChB jpFx/Lne2TowO2fVm1lKyUksavDFGf9DxaxkzU1IJ5OvLrtwqxGWru123hsLA/aM2mpkTV 87Eya33sme6sObqAiMFJAXbG0+boe4ozYnJ0vyr4k51mqUDxor2mRE7knDag X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 20 Aug 2026 19:10:38 -0400 (EDT) Date: Fri, 21 Aug 2026 08:10:35 +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="4Lzw9lMO4cusQWoa" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --4Lzw9lMO4cusQWoa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Aug 19, 2026 at 07:37:00PM -0700, Bharath Rupireddy wrote: > I don't think a separate view is the right approach at least for two > reasons. One, to know the progress of a vacuum one has to query two > views and relate them. Two, since the leader itself participates in > vacuuming indexes alongside workers (and will also for parallel heap > vacuum), splitting the same command's progress into two views adds > complexity. Keeping everything in a single view with one row per > worker (as discussed upthread) is simpler. Some fields would be null > on worker rows, but documenting this should be sufficient. That said, > I'm open to hear more thoughts on this. Having a single progress view feels like the natural approach here, for both the leader and the workers. The leader triggers the existence of the workers, but both leader and workers may finish by doing the same job as there could be usually little meaning for a leader to stand idle, waiting for all the workers to do the work. Such choices are implementation-agnostic, of course; we should not lock ourselves. -- Michael --4Lzw9lMO4cusQWoa Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmqHiWsACgkQnvQgOdby QH0YOw//TIfsgp+DaqdO4dfOHYItcYbHMtNvakDEGRxnIz5tXfszbRC1jV7+SSvC GgCgYBGpmkYrNGZnrIhvswBpGCWLGYroz77bAZHfWC7pARYDdgDe2T8d37LZ0TmS Xv4HeFbNVKGODbYv1e5ylGkHEnCNCBYWZtFWrCe2KCH+0TNt1d/7KcD/R6uKB7xa YeM5Np4oKU+9qTlyIDp2Q7Lal75BNM10rTn73Pks03Bw7mP/N9jWFULdDlK4tAIa Lf1aHAb9OsmHsstbn8Kknb4nllviYQNNMLcSebTnKqfa7IXn4IXKRF/E895JcJza BjWwoVeFB4Av1KZDm3JLtMOv831PUXs+OXeDGAAvx/32wheQOQZOIqFGOllmW5CQ IRQATxA1sTCuUPlv1YaGMLLEnT4cCVgNfBQiGTHenvYSqnE9oRIS8FgGOhdJp/Ut HNB1WCUpOLqhs5RnZsC6sUPxiwqPhDjz7SDWcyQJ2iZIpognWzGzUtVC/9rklbJu +eP6gGZ01iZH61bTu7+m9zXpIDfRmuxCC2rLo9/QGoQ/J8VQLLRrzwsE6Rkwcxn+ 9SijnsScrUuBcGCBqChkZ58O5naOtc3KCi/QgOKE1Awk6XFvGzjOHJXUS17+V+V+ J2TUvtSmfHbdFJu+ynF8e+1Q1yCDK2ec8zMn6riwJnqd2KpRxtM= =b31p -----END PGP SIGNATURE----- --4Lzw9lMO4cusQWoa--