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 1tp8ub-0010xn-4k for pgsql-committers@arkaria.postgresql.org; Mon, 03 Mar 2025 16:45:01 +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 1tp8uZ-00BhNl-TR for pgsql-committers@arkaria.postgresql.org; Mon, 03 Mar 2025 16:44:59 +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 1tp8uZ-00BhNU-K0 for pgsql-committers@lists.postgresql.org; Mon, 03 Mar 2025 16:44:59 +0000 Received: from fout-b1-smtp.messagingengine.com ([202.12.124.144]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tp8uX-000kNX-2H for pgsql-committers@lists.postgresql.org; Mon, 03 Mar 2025 16:44:58 +0000 Received: from phl-compute-08.internal (phl-compute-08.phl.internal [10.202.2.48]) by mailfout.stl.internal (Postfix) with ESMTP id 279AD1140208; Mon, 3 Mar 2025 11:44:57 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-08.internal (MEProxy); Mon, 03 Mar 2025 11:44:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1741020297; x=1741106697; bh=v IPTOpnAfilAwa7EHc48bj637spI3eE6+1nxfH06yMo=; b=7tT36m4LHvP9aQ2tX ErtoIs6xkImjz6Uq7ABNsegvquXP9VZYlRG8lRDKmsLqJYjpG7c1q5H25aG8qK79 ECafMG1q25j8GvCJoMyudsIqm8R+8mAJPrc+8Qltq42Yq7BAIHatwsLjgHiQJkdh 1LB+fnDzxn9lgZeOkVphcdgyzgfbO5ffl883+xZ1rHqwWbsz0eCk6AFmTdtWX95i RThP0rZQTIOPz95lFFtlKRv/3RCotnbVYUZSc8dhX+Sv5jnNb6Awjk9qexlNCEGb LJSIWLg2gGDIIYHPOZrHqtP1OvHRKRpgyixI4GvWTb7DgNTopolwNJ9EDmLjPTkW C5McA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdelleeigecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdej necuhfhrohhmpemllhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvh hhrdhnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedvheeuffehgfeukeeufeeh hefghfeugfefudekjeevudffgeffkeegffffveegheenucffohhmrghinhepvghnthgvrh hprhhishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspg hrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepmhgvlhgrnhhi vghplhgrghgvmhgrnhesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdgtoh hmmhhithhtvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 3 Mar 2025 11:44:56 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1741020294; bh=+mgpwrq3v+O/AIf8g11dn55L2ZUz5cKAzo5mY+BrHAk=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=oRK3zy0omJapmSBiCL93odosrxj3y6UlJ9c2A+aydPWoCOUo6/48wY5O6bDiKVfTS dhIZGh1d4CacgJbIvFglyFx7/4fOsQJA5Zw0qEkN2op91+h/+MMfs3VI6Tb3GL/+6w /mx1j5tT7UwdUNafRs5Lekin5UJgQ+lSf1A1htcOEFTFtBHIsLAXgCw91Rl35r40Uk lGpNyzhyTzUMG1MXYriILCZJDoV8Q7X46aYAXUgJ4FpUGdB6y3+5obbaFfDdIwrcXn FPzJ7/bMT+FxTwHPAdUDgmYsR8gTF8xavmpGnOecmJWPLcBurwoqhcZ28CLApjiN7m FETjX9su4kxag== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id EBB988F; Mon, 3 Mar 2025 17:44:54 +0100 (CET) Date: Mon, 3 Mar 2025 17:44:54 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Melanie Plageman Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Add relallfrozen to pg_class Message-ID: <202503031644.nihftaytey2b@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Mar-03, Melanie Plageman wrote: > Add relallfrozen to pg_class > > Add relallfrozen, an estimate of the number of pages marked all-frozen > in the visibility map. > > pg_class already has relallvisible, an estimate of the number of pages > in the relation marked all-visible in the visibility map. This is used > primarily for planning. > > 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 vacuum > 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. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "El número de instalaciones de UNIX se ha elevado a 10, y se espera que este número aumente" (UPM, 1972)