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 1wKK1E-000qoV-2f for pgsql-hackers@arkaria.postgresql.org; Tue, 05 May 2026 17:57:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wKK1D-00DBBw-2K for pgsql-hackers@arkaria.postgresql.org; Tue, 05 May 2026 17:57:15 +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 1wKJyi-00D7pC-16 for pgsql-hackers@lists.postgresql.org; Tue, 05 May 2026 17:54:40 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wKJyg-00000000gn5-1lGy for pgsql-hackers@lists.postgresql.org; Tue, 05 May 2026 17:54:40 +0000 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-bc47a96d3bbso125205866b.3 for ; Tue, 05 May 2026 10:54:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1778003677; cv=none; d=google.com; s=arc-20240605; b=KH0YdEGat+JsRlQ8T+jk2m1i4SMf9OfaY4lMzgAnTgbhcnGaka/3z9wcPdzs/9ICGw dJW8WS7xBvfGMDFcc5f2WALxNkgkUQ1Lavj2ErSj9htFV1TeHuP4PwHoLElGpQIDaqzn 3F6url0MzC7Ath+56d+G380EXATnLF/Gs0XHnUFSkuhBnn5tE9cKpGC9zm3RS0leGoKV 6HDMTHr87msfM11xjVftN2gUW4EsIfNbomJoDMjn2S8L7YXqWZ1Dw2K9QxGqxpNtMq4N uOYtUHklj0T92sU08lMkN/VVM+76b4PI2mu4F/lfFHV9aWzGBjc452k7hvYERuwTmVWm 1/sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=oBLnGRyxTf/0ndDq2kdfWY07MEKXeyNwQapY7K7Uuzw=; fh=rxy+4R5RAfz27w/g7ZsxrTiDybElymesvHD6KaufTT8=; b=AJ08SFVlghCq2lSl+ndezJMVzcnIRbPVnBJw04vxtj24mHeAUGJDACirtF4ZhR3HwT kjr/rOk5XYcV2+mZTvNl5wK2GsGCTjqY7vXoN4zuNyYXQ0rT5AQSX7KgOawaUcHK13L+ zcTZhhg993j8PVMjTK4hTlXhvrcr07di31VyyZmjrokx3Pi80SzrhJCV42DkwilI+oz2 eceMt7wfGSfjnAs4hKmQyS0Hl23P177OcbISZBJRutFEtbk0NhJ9abvMQNxtOOukGT35 hjMqbcexU8JoGch1SFYvo7za60ApeAsnECdvjQ8zOuVnAmzi77ARzFIKKVxMZkMlLPWh KNpg==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778003677; x=1778608477; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=oBLnGRyxTf/0ndDq2kdfWY07MEKXeyNwQapY7K7Uuzw=; b=hzu+rDkC/EK7O8Os+56cjos2P39uELbyev38VZeN15cyXmRECSl8T2o5F+RIxmcgNh PpKwC8n0dH3y3IU8Uq0LUMktjn0xrv/wGSsWbCCwAavRYreEPlgV9EKVlG2dV2SPJlwx GSsvz2l/rgahrpU412UdFQYDktPhzHyMn2mHidmSwjjrQNaqr2C1K05nob2Tm1zfvFWv qFoMqlRCmdDArNVF8nm8FFHWdVX/vb9mUj3SG9P1q9oSaPYAdYGDKiTC95owLOggGc7t G0Lh17sXifZY7JD7AwVyr+hJME0kF4e8VzzhV0m/yh34yWSWBuBVp12MUaCIaefGpLfL HmCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778003677; x=1778608477; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=oBLnGRyxTf/0ndDq2kdfWY07MEKXeyNwQapY7K7Uuzw=; b=QmuxKg5l7pPlEUYq3Ovg+Ao5Lkmj6BCw3c0VxMFjY0Wn7WhpGLR5cp6FLvoVGqya0M /35JsN8X9vhR3rIT/8Fs46Ge9jlGSvDCe7x/giMcc1RTi69p9ycEOR8CMQemPjFvCiCa 5+C/U/MIcDrFIBIFKc7WMemo3kYDslq/pb3zYcF9XChzrtH4gy/DnpHL3SJxqFfnl4jk RrEFrIqdOJMU63V0MdND6tJE+vj3duTQe0CoN8kfToJCGkP9iKyYlnA6+FzJGfuFnVfj khLZh7HlKJel8Fantszo1PWWNh41Q5F5axAfSNDEUWj2Dwm2Us9RMWUL8YpiGB6+4vDJ NuUw== X-Gm-Message-State: AOJu0YxJxAsSAOTviPEkVjizI4S7E0Oo/M3+ud7tg4G/iG6oew3Cih9L sLlBuRCnwcFrZdg/91EQNZl3V2vLhXfSk8tfwxkSAeLRpC+kzfIQGnBU+DDWV8evwkx+yGslNug ZpGzyGAXsn3gVNi7Fw0/IuzGXdaYogUo= X-Gm-Gg: AeBDievc2Ib+U7zTNJDB7GgRYbLrXohC2ptFXUnbHf6yZFUfvj/1Wa60T4hFgbwnnwe Ly6xpIsEmPajqRVe+v1a7rsGiP9zBUNKfJddnuzPiZQJBv2RfDRk2HDUWy2x90gvfIRejMFtZLP s0Ektz8DXvGg/CulC4w0V0bAefTpa6QAbdT4USz/6pb57HUJqfLAbfHom6lmylvr/5j5XHU+Y6G TG2M1rOsdxnY6hJv1+r4pateTILks8boZSPW1vocFXTmiZcCpvLwdOLvG8Ej51COb1Q9RoWGQEB DjKMif+qic5ZkWGlyK8me1U7EnHbaJaVKxYEUfMA+RJm8xR5 X-Received: by 2002:a17:907:98a:b0:ba5:60e1:2ef2 with SMTP id a640c23a62f3a-bbffcf7eb1dmr793942966b.22.1778003676686; Tue, 05 May 2026 10:54:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sami Imseih Date: Tue, 5 May 2026 12:54:25 -0500 X-Gm-Features: AVHnY4I9UA-cvRL2OxlVnG1ZehwvSObcICsnnDdYv56qO4G7lxYZmVaJWjxJAm4 Message-ID: Subject: Re: Report index currently being vacuumed in pg_stat_progress_vacuum To: Bharath Rupireddy Cc: PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, > Appreciate any feedback. Thank you! I think it is valuable to show the index being processed. There is really no other easy way to get this information except for pstack, etc. I am +1 for the idea. However, I am not sure that having a separate row for every parallel worker is the right approach. The pg_stat_progress_* views are designed to show progress per row. Each row represents one command with meaningful progress counters (heap_blks_scanned, indexes_total, indexes_processed, etc.). A parallel worker row would only show current_index_relid and leader_pid with no actual progress information of its own. That is status, not progress, and it does not fit the view. Also, many columns would remain empty or redundant with the leader's row. Instead, could we aggregate the parallel worker information into the leader's row. For example, an array of worker PIDs in one column and an array of index relids in another? -- Sami Imseih Amazon Web Services (AWS)