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 1tp8zq-00121U-6H for pgsql-committers@arkaria.postgresql.org; Mon, 03 Mar 2025 16:50:26 +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 1tp8zo-00BoXm-EP for pgsql-committers@arkaria.postgresql.org; Mon, 03 Mar 2025 16:50:24 +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 1tp8y1-00Bma0-Rr for pgsql-committers@lists.postgresql.org; Mon, 03 Mar 2025 16:48:33 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tp8y0-000kPI-07 for pgsql-committers@lists.postgresql.org; Mon, 03 Mar 2025 16:48:33 +0000 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5e058ca6806so7547438a12.3 for ; Mon, 03 Mar 2025 08:48:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741020511; x=1741625311; darn=lists.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=ECHVCdKUWK8WEluiTkl8wU1Hz+Hb7TuCNndcCimCBLs=; b=KMKqC2o8VuLLnrko1rs7lLBqshOtHmKUJJGf/DB/GCrY61XnqCOPNyACMXD3WxV7B8 RAKvM8AWbEDifTIqxBTE7Aoih4GMNPAMtvaPnFvvkDxIprHERFq/UoYbaVLHN/i1Blgj zk/la9iXBsBl//A8yMDT1ufsEYdYtvsKKpEv2tztiyb0RNxLNKrVDO5AwohugcJAQWQN L7HxaROqVvWcULHk3BwiYtUuqAqtWCQXY6x5NkG5spXPuw6Jmya6i1gdX90N8FNmUy+3 lfFTagaWbe6neLPz6O/6BxW+H8A1MnLelzNQR93rFqW7QI3pGsxN84HflUHkPlTwmEIy AwHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741020511; x=1741625311; 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=ECHVCdKUWK8WEluiTkl8wU1Hz+Hb7TuCNndcCimCBLs=; b=cOpDB7hOFvJVPB1felwoXBF3OvK5pANUTbFzwUWECBXb0hVe1DeZAJkT0ox3vcH701 M8zeQ+syNnPmDZczheGyVRu2ApESXJ4nWjufVtk8E98WIOHYk5y67wx7QTCnADCM4rcO lrv3UKQx766liqYYu9Hg33DHHaOEHkE+P7pVrgMc1W8lME7QDE8dxJToPf7Sklsv0+QW Exl4RE3P6n9/N/wCzG5ZZGZQJ9Ts8WRIujHHx7f8NdrfPv1ImsyoP+orx1m9w+yuYdHi H1Y7Bim/Ok1iEn09c0eAs6cwa1qSKFwXjq3ygZ4TOWFJiiAw1VyKlQ523Ko4tVZeBh0o 1yAg== X-Gm-Message-State: AOJu0Yy2NQCTTe4oW1OrKFvAjVjMj5SNZK2D2ap+eUbDhga47ZK5PpbL gnea1wt5biHOzC4WUtm7BVcrJrys6zhrxdRBdVuqR3aCjPOM/hKam4hc4fUYu9naQRyc76SOxw3 KQ4m6o3GHYxSm7sUWPIzlKQFKBJEjEA== X-Gm-Gg: ASbGncuSI5HDp1Xfv3b/+hrPCiRyQGh6nh7wsGrt4EM4/2lS4Z9EHX1OeJkkssgizuP /rY1AZ8Ryq+95QZx4V2O4hY3/n1K5fho8EponJU6VI6HPi2MWoqflttz73xw7LZN2Mw9UTTLz5i 2jrYp9AwbTjLrmJ4VEHd6jjspp1Ycxc2JqUFCfeRAyPqRsfWk+r2S38IyKbBr8 X-Google-Smtp-Source: AGHT+IFKR6t/d6NJ16gZfrKQCK6KmfA3Zmd3kjOriDZ4kvu76bB448lpTk1MxbJ9lxzb4t3h9BwduSmHDhd4jILyrgM= X-Received: by 2002:a05:6402:2789:b0:5e0:52df:d569 with SMTP id 4fb4d7f45d1cf-5e4d6b852d0mr13958673a12.28.1741020510268; Mon, 03 Mar 2025 08:48:30 -0800 (PST) MIME-Version: 1.0 References: <202503031644.nihftaytey2b@alvherre.pgsql> In-Reply-To: <202503031644.nihftaytey2b@alvherre.pgsql> From: Melanie Plageman Date: Mon, 3 Mar 2025 11:48:18 -0500 X-Gm-Features: AQ5f1JpvkHALim04ZZ8ziDHBZNXEwoQF-QMKii4nLCKCctGqGobFoyOspOunz-A Message-ID: Subject: Re: pgsql: Add relallfrozen to pg_class To: =?UTF-8?Q?=C3=81lvaro_Herrera?= Cc: pgsql-committers@lists.postgresql.org 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 On Mon, Mar 3, 2025 at 11:44=E2=80=AFAM =C3=81lvaro Herrera wrote: > > On 2025-Mar-03, Melanie Plageman wrote: > > > relallfrozen, together with relallvisible, is useful for estimating the > > outstanding number of all-visible but not all-frozen pages in the > > relation for the purposes of scheduling manual VACUUMs and tuning vacuu= m > > freeze parameters. > > I'm confused about this. Why was the new value added to pg_class > instead of to the pgstat system? I don't think relallvisible is a good > precedent, because as you write here, that one is used for planning, > which has different requirements. For vacuuming metrics we rely on > pgstat. We use relpages and reltuples from pg_class in relation_needs_vacanalyze() in the same way relallfrozen is being used here. If we don't want relallfrozen in pg_class then there is no reason we wouldn't also move relallvisible out of pg_class too. - Melanie