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.94.2) (envelope-from ) id 1tTnd4-00AjWx-St for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Jan 2025 19:46:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tTnd4-004ig8-B0 for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Jan 2025 19:46:42 +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.94.2) (envelope-from ) id 1tTnd4-004ifz-0W for pgsql-hackers@lists.postgresql.org; Fri, 03 Jan 2025 19:46:41 +0000 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tTnd2-0004uC-0k for pgsql-hackers@postgresql.org; Fri, 03 Jan 2025 19:46:41 +0000 Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-300392cc4caso144303921fa.3 for ; Fri, 03 Jan 2025 11:46:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735933597; x=1736538397; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=tgQ2/D932rTq3Y59Trdxd+k9ROWoZ6vuc45nqzJ9sxA=; b=l2gNEDHk2ww/3VGvmcyQMmFYqyYHRMcSH+ow8yu4P8+X8OzpKY4kd3VX3g4JEcqvb2 uFsQb+BOy3PNBnxuqQnPuecbVrICOljU7dPBMSWMRU/K3tcBpH9SMQPVWYqVKWDNaGH2 l4t0ZPpkOaBIuvX9wBsBMZoHbUYqwy08nYQHRIVJc+nuMi0rkMqw28nyAfC/9TFwkDCb 0gf7dx8ERu5FxO93eWEIzpJNhAdzo3CYNlu1ASoXx1HtSZbyES9s+10elgmYn+6Kkben zdNolrIQ8tJ7D8CxdLKi+WD7cFCsZcJbS3efbbhQEOcwE2nlbIIBODQj1uYCTfZfbCme lfGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735933597; x=1736538397; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tgQ2/D932rTq3Y59Trdxd+k9ROWoZ6vuc45nqzJ9sxA=; b=C7U7akuLz1NQF45M3vto39lftT42IBX5wwICYyj15Y6f+qcXCW13rc/9a3n9HPTczp Rr50AdIDdjrov7hpuacTS5pBTagGWK/gtn1RGn2d6AtkYgFIhJ2sZBHk+RP40dgybk/r Jzai0Kn1Ct2jWya93JsnFHRw1n/B0I4RelfFJZS/B8xMdxZoSERHMGAlE97KVA2PFfbE MTR0kntrO0A01WAJRZFwNqd+AZpBQHbbCys7li2G6hMBLf2TZvmqVVw1ofWzYQzMk9vs 1bD+v4nmd9K96226h0DZObGmhQXBOz5nBmeQIyYlZWn0ShVJFPNkOJ7+1NvI4B/ND3nA 8XBg== X-Forwarded-Encrypted: i=1; AJvYcCVrpWgO83VlO/qNuC+I3kvZ4JTRFCxrP3SeqnLVR1V07iV8ECURdctWmCN8gfqN0sfA+mh3DT3WpINajFSK@postgresql.org X-Gm-Message-State: AOJu0YxLaIWlc8+hwD6XIh0KSaWR81YQBewsgERvH1xsqUiHJbvjAwvg pcebXNOTTyPE2s7kAXRr7rmowX7MThTA/CkRP92Kaw93fIuN+5MdT8ejBgiP4RLI+R8uyWp2swa OnheAj/AbOZw7y6b1UxlUvUKfqdo= X-Gm-Gg: ASbGncv95G8NVtkNQrVgUMlCWLjAAqsdaA8NfVaYzmANVdaevxe2UC/61tV/ed6eyAt b2CJewO21o/eOPqTyta9H5UtmmD1SH5m+8TdsO8/FL4jOpC/LaxvJLfMLqKidDbrlXSClZzg= X-Google-Smtp-Source: AGHT+IHqgBN3AYLlMvuBCa8RLIXCxdgJIpvgveWAkFBT3ZreVmrKtgFqQ2TOmtSyK/9ppJpGDviy5sTRugLbY+KnS/U= X-Received: by 2002:a2e:bc26:0:b0:2ff:cfbb:c893 with SMTP id 38308e7fff4ca-304685032femr147040381fa.6.1735933596918; Fri, 03 Jan 2025 11:46:36 -0800 (PST) MIME-Version: 1.0 References: <9b10c6d3-52c4-4eef-b67c-c33442667729@postgrespro.ru> <9485d892-fd04-4e3a-ac24-7dd767cb7333@postgrespro.ru> <0B6CBF4C-CC2A-4200-9126-CE3A390D938B@upgrade.com> <6732acf8ce0f31025b535ae1a64568750924a887.camel@moonset.ru> <5AA8FFD5-6DE2-4A31-8E00-AE98F738F5D1@upgrade.com> <85b963fe-5977-43aa-9241-75b862abcc69@postgrespro.ru> <9C7A167C-DCDE-4A17-9ABE-6276723FEC50@upgrade.com> <2d493cf9-9ba7-4cc1-a3f2-67afd7c163ee@postgrespro.ru> <77e6e723-0d3e-4235-8386-03d143916125@postgrespro.ru> <0E5557BC-50FC-400F-BE96-11922C0C11EE@upgrade.com> In-Reply-To: From: Sami Imseih Date: Fri, 3 Jan 2025 13:46:25 -0600 Message-ID: Subject: Re: Vacuum statistics To: Jim Nasby Cc: Alena Rybakina , Ilia Evdokimov , Andrei Zubkov , Masahiko Sawada , Melanie Plageman , jian he , pgsql-hackers , a.lepikhov@postgrespro.ru, Alexander Korotkov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > I guess one question is how realistic it is to try and put everything abo= ut (auto)vacuum in a single view. > Given the complexity, the answer to that might just be =E2=80=9Cno=E2=80= =9D. In that case leaving existing fields in pg_stat_all_tables > is a lot more reasonable. Agree. I also think the total_time should be in pg_stat_all_tables. total_time is a high level metric that along with vacuum_count can calculate average run time of vacuums on a specific table. Everything else in the new view are more granular details. Regards, Sami