Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lAWUI-0000bp-QF for pgsql-general@arkaria.postgresql.org; Fri, 12 Feb 2021 11:19:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lAWUH-0006dd-Oz for pgsql-general@arkaria.postgresql.org; Fri, 12 Feb 2021 11:19:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lAWUH-0006dW-Hq for pgsql-general@lists.postgresql.org; Fri, 12 Feb 2021 11:19:49 +0000 Received: from mxh01aws49.mxout.inova.com.br ([34.198.242.49] helo=mxhero02.a.inova.com.br) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lAWUC-0004QQ-3y for pgsql-general@lists.postgresql.org; Fri, 12 Feb 2021 11:19:49 +0000 Received: from corpmoutpolicyd01.a.inova.com.br (ip-10-0-1-88.ec2.internal [10.0.1.88]) by mxhero02.a.inova.com.br (Postfix) with ESMTP id 0FC4C20B50A; Fri, 12 Feb 2021 11:19:41 +0000 (UTC) Received: from corpmoutpolicyd01.a.inova.com.br (localhost [127.0.0.1]) by corpmoutpolicyd01.a.inova.com.br (Postfix) with ESMTP id 05DB2220404; Fri, 12 Feb 2021 09:19:38 -0200 (BRST) Received: from corpmout01.a.inova.com.br (ip-10-0-1-125.ec2.internal [10.0.1.125]) by corpmoutpolicyd01.a.inova.com.br (Postfix) with ESMTP id F0F63C2377; Fri, 12 Feb 2021 09:19:37 -0200 (BRST) Received: from corpmbox02.a.inova.com.br (ip-10-0-4-158.ec2.internal [10.0.4.158]) by corpmout01.a.inova.com.br (Postfix) with ESMTP; Fri, 12 Feb 2021 08:19:37 -0300 (-03) Date: Fri, 12 Feb 2021 08:19:37 -0300 (BRT) From: luis.roberto@siscobra.com.br To: Luca Ferrari Cc: pgsql-general Message-ID: <2079035951.52789040.1613128777722.JavaMail.zimbra@siscobra.com.br> In-Reply-To: References: Subject: Re: pg_stat_progress_vacuum empty when running vacuum full MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.0.4.158] X-Mailer: Zimbra 8.8.15_GA_3980 (ZimbraWebClient - GC88 (Win)/8.8.15_GA_3980) Thread-Topic: pg_stat_progress_vacuum empty when running vacuum full Thread-Index: kjxvwy3oJx47tK0tFYnl4AQFv18gGg== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > De: "Luca Ferrari" > Para: "pgsql-general" > Enviadas: Sexta-feira, 12 de fevereiro de 2021 8:00:46 > Assunto: pg_stat_progress_vacuum empty when running vacuum full > Hi all, > I'm running 11.5 and I'm monitoring pg_stat_progress_vacuum every 2 > seconds, while doing from another connection per-table VACUUMs. Every > vacuum last 30 or more seconds, so I was expecting to see a record > within pg_stat_progress_vacuum, but nothing appears if the vacuum is > full. I suspect this is due to vacuum full performing a side-by-side > table rewriting, rather than in-place actions against the original > table, but I'm not sure if this is real reason or if I'm missing > something. > > Thanks, > Luca Hi! I believe VACUUM FULL progress can be monitored via the pg_stat_progress_cluster command: https://www.postgresql.org/docs/current/progress-reporting.html#VACUUM-PROGRESS-REPORTING