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 1tTSWU-005r3T-CJ for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Jan 2025 21:14:30 +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 1tTSWT-001tfu-6y for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Jan 2025 21:14:28 +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 1tTSWS-001tfk-LC for pgsql-hackers@lists.postgresql.org; Thu, 02 Jan 2025 21:14:28 +0000 Received: from mail-oo1-xc2d.google.com ([2607:f8b0:4864:20::c2d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tTSWP-001mMY-3B for pgsql-hackers@postgresql.org; Thu, 02 Jan 2025 21:14:26 +0000 Received: by mail-oo1-xc2d.google.com with SMTP id 006d021491bc7-5f33fac145eso1096317eaf.1 for ; Thu, 02 Jan 2025 13:14:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=upgrade.com; s=google; t=1735852465; x=1736457265; darn=postgresql.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=MLjo00akZBPKF46KrgaEry4IrBnh00x62bP35qNALvk=; b=Uk3euN4FICz9ZHttiLciHOmnvp/H6qXn18RDuOr+B/9VRaaWi946PZHuD0GR10liOG if4HsFKPYXPaCzOX3U5I2UJQ4nVNLO+QWRDf8iAdtNKucXGMM8oBJ1mUr65nmirTW8RL krlnqpYDZtg7yOmGHycGl/XL5f4FYdm+ZQw1aKI2Ai0XrOsZTBG60WaVrPLDxC2+rnRE oAOTwfVEGBcUOwpcnnh4xnZjFoey0IO0orSr3TJkt5eEPyRKauRAOgDcOQfQEnrZz5hN XEu3oIob6HcBrBNGp2/AQC4WATeU9kCf7Ep0/Awe7hEFRy5597AahAa+Wuo88LORvTAz 5K5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735852465; x=1736457265; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MLjo00akZBPKF46KrgaEry4IrBnh00x62bP35qNALvk=; b=CNC0eYQUlLWJC+5OvcpTfXfaLYceLKP84VbuD/bDHHWdQjWdQywwD/XAMr6pKyMmEe xAHRPIdkk28/GyyH/9OnJ9joOhYVOHROdL/e4cthfe8pHg7PE60IXJuC/tbAmn/Yov7y GBmpQBuOv0+Iibc+oEjWqc+sElsaBuwXa+XgNkoF0FPBopfQ1UEvdP9nFojOGSueObGH jBhy57Qdm90jL+T1Chwx2gMuvEcDTB4NKPvLip/a8mOdcWFqPhAbuBKtMShrygR1W0Zb 0SLdU8K5lSaDsoweUkZeZ1Z5nMcZsi8iE1h2Rkb1UqDTqaBk5Rbyr/3uRCvXMTbT2c4K cGIg== X-Forwarded-Encrypted: i=1; AJvYcCUOJd9hskHTXE93Yf9LdITS/7Doy0pOVVnTpKCdC4c44UN7zSDWpZFWDfBU6461Uz7UZWk95hB5xMWSt1oM@postgresql.org X-Gm-Message-State: AOJu0Ywo+MhKNx1GP/vpxBqWeQsTB4vDxJgC1QDPqM94p4sSj9LeajuW ZABwl8ou2GpuV4Qy4WW2yRd2OFG5jgp+g6GkCeiSVLeZ7LP0FNp31McaCFAUaEU= X-Gm-Gg: ASbGncvM9B3xx4r4C9TUDmvzJ83Rv7Nx9vPOoYYiHb2n1NT/JZoIzm5o0/zjxhaiOxt v5sQ6jXywRN1W3tXapk7VBAr13z49LsGLy7z8dvY2XLgjYp707ajdEQ8eKsjLQQ01npGoXeW1cI vuB/mZclc7oKAlAzq9UpRghEcY7EYhPftprn6HFC4KX4vrY5viduLcb+5DTdusfa7UFtwSoyQHz FAROSw+Jg1MyDErNk6FWFFqolnCpcZmtoIwkOi5iAc5w8hwbWlJHiw/78IS+5xXEYct7ecLxE9R LolC6lYzbJU0Xw/yyfJd79LOmWx3VCIarvw= X-Google-Smtp-Source: AGHT+IG7qnlOljx8t7Eub2YwXGeiu6XYFKLavITaKtu1MZX+CIycuzFNFAgyZT7aaf86vvfPxytr7A== X-Received: by 2002:a05:6870:a254:b0:29e:3b8e:66c8 with SMTP id 586e51a60fabf-2a7fb10f519mr8711932fac.6.1735852465203; Thu, 02 Jan 2025 13:14:25 -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 586e51a60fabf-2a7d74bb9fcsm9152385fac.12.2025.01.02.13.14.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jan 2025 13:14:24 -0800 (PST) From: Jim Nasby Message-Id: <0E5557BC-50FC-400F-BE96-11922C0C11EE@upgrade.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_37FB5F69-D26E-454D-80E7-48B8712587C1" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.300.87.4.3\)) Subject: Re: Vacuum statistics Date: Thu, 2 Jan 2025 15:14:13 -0600 In-Reply-To: Cc: Alena Rybakina , Ilia Evdokimov , Andrei Zubkov , Masahiko Sawada , Melanie Plageman , jian he , pgsql-hackers , a.lepikhov@postgrespro.ru, Alexander Korotkov To: Sami Imseih 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> 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 --Apple-Mail=_37FB5F69-D26E-454D-80E7-48B8712587C1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jan 2, 2025, at 2:12=E2=80=AFPM, Sami Imseih = wrote: >=20 > Alternatively, we can remove the vacuum related stats from = pg_stat_all_tables, > but that will break monitoring tools and will leave us with the = (auto)analyze > metrics alone in pg_stat_all_tables. This sounds very ugly. 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.= --Apple-Mail=_37FB5F69-D26E-454D-80E7-48B8712587C1 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
On Jan 2, = 2025, at 2:12=E2=80=AFPM, Sami Imseih <samimseih@gmail.com> = wrote:

Alternatively, we can remove the vacuum = related stats from pg_stat_all_tables,
but = that will break monitoring tools and will leave us with the = (auto)analyze
metrics alone in = pg_stat_all_tables. This sounds very = ugly.

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.
= --Apple-Mail=_37FB5F69-D26E-454D-80E7-48B8712587C1--