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 1tTTlH-005zhs-Uf for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Jan 2025 22:33:52 +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 1tTTlF-002kth-CU for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Jan 2025 22:33:49 +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.94.2) (envelope-from ) id 1tTTlF-002ktZ-1p for pgsql-hackers@lists.postgresql.org; Thu, 02 Jan 2025 22:33:48 +0000 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tTTlC-001n1x-3D for pgsql-hackers@postgresql.org; Thu, 02 Jan 2025 22:33:47 +0000 Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-304d9a1f198so6857461fa.0 for ; Thu, 02 Jan 2025 14:33:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735857225; x=1736462025; 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=uk26HYYRYfGeLTnz71zDTEwzgS5jm0/1CBtjt3DImmo=; b=ONR39ZKlIxd77ufzix8Yp3RVNEsxfUVVDAaZk4jwsBHa6RDAL3cEm444ndvyeJOnGd tcvi66QZPY8H/Dg5/srTj85boNWpalpTuvKv48EpzJ4pcA+SSkOElLD3iOsNgy6ziRqL SC87mSgNOJJA7TlOYsH2k9WHplVXYBPbK0xPKzqdtf3swsMMBSGJuQRbQv+DRLQgEmf6 /tJuxIHustMDV6VFbWmAkzobvxelmyjDgGrX/1vgFeLv0xAeILl+yfmY10Z9abH5pDbB Cx7qRfLqkg8SICKpZxLgAwJ/ihQDaUXFCzP6o7x4F+AiOP3ussjMMgbxtHCj/RvWptF9 nw9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735857225; x=1736462025; 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=uk26HYYRYfGeLTnz71zDTEwzgS5jm0/1CBtjt3DImmo=; b=pqDvWuniGZqTps1I7XK62bEdRsfdGOfMg03CSJpNl9AItksLlBE8rc1mNuIbsBPIgm mHhiiryChRB+afVR9rSmCMe1+2KrbZ/Ody0yM9IthwR5LhFiJ/0ffOmzI7GD0HbRfRbD TrotktKMC2++IwVLpfTqsOstL+jPiWVDfgdV38rzJx5p50eBza5qhZICGVP/wnLmi+mq uUwpduRwJD7SJ9qOHksvIBVoR2TwWlFnbNr7PIJqDXfH7LiMXd6EmUOaDiGFOztS//Xc 1GuITssLPfHTzAGmM6TBF0NUqailJMTEJW4zMrr2dG/FE8roE/vZbcCapNkDAWVkkDeo UKHA== X-Forwarded-Encrypted: i=1; AJvYcCXnGQWOORElzrw5wnTkITtTWo88jMwLKWfXqq70nlW4n8PYjKLsEBtMhnZGMIJ1MFRwbCC8eH+QrapBMCMm@postgresql.org X-Gm-Message-State: AOJu0YzfHj1/1Qjm+SvoWBZlJ9Z4p6uJ2y+NLWj4C5b3U3/z6RfEucyY XRiPcDp3E1aCvFUtZ/MO5H9R6twli43KEoenrJgWd3CpDWFmX8bvw/eS66vqlag5FNRfdhnXD3U 7tb62IMnkugwzgbttDCemXaQHhQI= X-Gm-Gg: ASbGncuF52UP1XKtqsy1yZFvOHAjBha6PGQoj3pmX8hCuS05Q4pczmH7jAfqOQ4IwiN 8J/zjpLOG2erE/1kyHRD+q5lZ9/7VGT2TKZ2XaA== X-Google-Smtp-Source: AGHT+IHITCu6ftdboYx4wOOF84a9G4ZVGku8fIZpvIhEVlkWleF0RfXr9Lvl9kv36Qx0DuwKH8OgOGgHp3o4hZ+qqqQ= X-Received: by 2002:a2e:be06:0:b0:302:16da:a052 with SMTP id 38308e7fff4ca-3046860d39dmr132897651fa.27.1735857224642; Thu, 02 Jan 2025 14:33:44 -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: <0E5557BC-50FC-400F-BE96-11922C0C11EE@upgrade.com> From: Sami Imseih Date: Thu, 2 Jan 2025 16:33:33 -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 > While backwards compatibility is important, there=E2=80=99s definitely pr= ecedent for changing > what shows up in the catalog. IMHO it=E2=80=99s better to bite the bullet= and move those fields > instead of having vacuum stats spread across two different views. Correct, the most recent one that I could think of is pg_stat_checkpointer, which pulled the checkpoint related columns from pg_stat_bgwriter. In that case though, these are distinct background processes and it's a clear distinction. In this case, I am not so sure about this, particularly because we will then have the autoanalyze and autovacuum fields in different views, which could be more confusing to users than saying pg_stat_all_table= s has high level metrics about vacuum and analyze and for more details on vacuum, refer to pg_stat_vacuum_tables ( or whatever name we settle on ). Regards, Sami