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 1tTn1w-00Aaz1-MZ for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Jan 2025 19:08:21 +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 1tTn1v-004SLT-TH for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Jan 2025 19:08:19 +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 1tTn1v-004SLL-J2 for pgsql-hackers@lists.postgresql.org; Fri, 03 Jan 2025 19:08:19 +0000 Received: from mail-ot1-x329.google.com ([2607:f8b0:4864:20::329]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tTn1t-0004gD-0o for pgsql-hackers@postgresql.org; Fri, 03 Jan 2025 19:08:18 +0000 Received: by mail-ot1-x329.google.com with SMTP id 46e09a7af769-71e31d295eeso1038448a34.3 for ; Fri, 03 Jan 2025 11:08:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=upgrade.com; s=google; t=1735931294; x=1736536094; darn=postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=+/yUnb9WGRuNQXUp8HMFGs2CU6yZqUKv6JwSapJHrD8=; b=OkiPY0KDvcDkjgQYo6tej4A1V+IM9VsuCcLaEx6uNy5N7R9vli0b46uYzHHOQQsrmX sZ/w6eh1+ZKHiZWoG3TQPwi0o6gkUVyVsbrcUQidJ73Cz81p9ctISNeALHjohBJi0bIK /X9yQaifj60Ps7gjUvshv3dhuXlGoPEjPnRR8OrpDfdPDbHdwcm4/oQ6V8V/3m6NxG7v nWXZJxsYwRUceV79u7Urj5E/jxaYd5F9aLPEPSTq/ITnbiVyunLC5zMibYxtLLvoLSph ez5eK0Ti9+UHKwjChjSuSnqtOHBTgUDdsM5Cg34hxjv79gP+OKUbtEV63djRHEiO5iw7 e8vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735931294; x=1736536094; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+/yUnb9WGRuNQXUp8HMFGs2CU6yZqUKv6JwSapJHrD8=; b=WsIEC9mfbAg2BTGBFBFaLJ0FyaX9niNDoQ/o/q4TtJq2l+ZHWvyjs1zCSdrx3RvgWN kDcnIpKBRx/U50ofoYTXonBn/Vaz6VKY9M4HYx9QCZIJX7n57m8vLpIbcQvnf6H1O+yI dDR/oGcVDkXUcTFqsuD7lAJ/dl1h7fQgYJQoWFO9VOEWXzpYNXIoYL87rdhK/9p20arY 8aJaQJ6d/0W1r3wNhsTtAyT/M7Dbx7BuTjBWm3rBBW1Mu9P5Hua53OYfR4FbrjUlmZOj qA/lGwuwdsdsMfZE5uMeRJmbgmoJCPZYicgiVdB/sreAajDQj1UN6jhEbgFHw40pczcr yAXA== X-Forwarded-Encrypted: i=1; AJvYcCWhqUGf6q0fNQf53c13ey/aBkKRdxDPwFKy3ks83sBuRNcMeyCLb1pwBlsTA1j15rjUqn2/F706pxOEXqWz@postgresql.org X-Gm-Message-State: AOJu0YzcMdTkD/FfGgMy1J3xtiq9XoDgCd+m8i0b5xXGT/xGau9qaC9I 3YKOiz/afdh0wjCRQTaZVUZMPbcV7hSnyVNM7sjRiyomD6nEVpROsqvB9/QBe5w= X-Gm-Gg: ASbGncvLhEWzl8H/I55OE0u/W0QZ2lpsuAXxJQXv+Amf/ZS1cyipKME05xCchshhP73 qn6ohL4zWCeH7jToJTOkJof7hi1Ql7APAOxTZKtt3yBfSXL4EWjByxm089XRjlNt0n0v1VwVeGT 3/mTnsP96qO9+W33Rxv8P1oV0Tfxlw+gwyJFwYXhryHflrdVOy/A5CKBMklfvyFtGsS4QryMsQr TX1Q++/EbniJnnnH6sInmb87cKbtBeo7zfVhiBonq0BFKoNWi4MdE0Vlz0uhE7Oz6W8NIaEfD/O T1gxMDXuMUVFLvB8MMXkcg+LNbip8iORI84= X-Google-Smtp-Source: AGHT+IEs9e4dsR4I5UNN4y2qSjuE1n32ngG8KTZoUPfDOJ0Ud08FrZcMwGrw99x3ucNhmtUbqDB5eA== X-Received: by 2002:a05:6870:2f05:b0:295:c1ca:b99a with SMTP id 586e51a60fabf-2a7fb00ba31mr8994843fac.1.1735931294497; Fri, 03 Jan 2025 11:08:14 -0800 (PST) Received: from smtpclient.apple (syn-070-113-014-216.res.spectrum.com. [70.113.14.216]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5f64c94d37fsm6424543eaf.44.2025.01.03.11.08.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Jan 2025 11:08:14 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.300.87.4.3\)) Subject: Re: Vacuum statistics From: Jim Nasby In-Reply-To: Date: Fri, 3 Jan 2025 13:08:02 -0600 Cc: Alena Rybakina , Ilia Evdokimov , Andrei Zubkov , Masahiko Sawada , Melanie Plageman , jian he , pgsql-hackers , a.lepikhov@postgrespro.ru, Alexander Korotkov Content-Transfer-Encoding: quoted-printable Message-Id: 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> To: Sami Imseih X-Mailer: Apple Mail (2.3826.300.87.4.3) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Jan 2, 2025, at 4:33=E2=80=AFPM, Sami Imseih = wrote: >=20 >> While backwards compatibility is important, there=E2=80=99s = definitely precedent 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. >=20 > 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. >=20 > 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_tables > 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 = ). I guess one question is how realistic it is to try and put everything = about (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. Related to this=E2=80=A6 it=E2=80=99d be nice if we had a view that gave = insight to users about auto vacuum scheduling. I know there=E2=80=99s = one floating around the internet, but given the number of systems I=E2=80=99= ve seen where autovac can=E2=80=99t keep up it=E2=80=99d be good to = raise user awareness.=