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 1tgVXH-00BIH4-L6 for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Feb 2025 21:05:16 +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 1tgVXG-005iQX-Jh for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Feb 2025 21:05:14 +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 1tgVXG-005iQP-AL for pgsql-hackers@lists.postgresql.org; Fri, 07 Feb 2025 21:05:14 +0000 Received: from mail-io1-xd30.google.com ([2607:f8b0:4864:20::d30]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tgVXE-003pq9-0q for pgsql-hackers@postgresql.org; Fri, 07 Feb 2025 21:05:13 +0000 Received: by mail-io1-xd30.google.com with SMTP id ca18e2360f4ac-844df397754so72086539f.2 for ; Fri, 07 Feb 2025 13:05:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738962312; x=1739567112; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=al3MlzeKbb5xKN2DLd0+R0L/gCIp0KF7BK2ZBfduwME=; b=c1jbh95KCxnXIDvs4RGKkGtSP3qsQ8/91Rx1mL2/fiaMpI08J+siTIFEj5M5N2a0J5 BDUN//1wzXQxJcMdd3z4jLvnuHb5AqbFmqTUwp6fVniD5f+tYGaorB3bxGH35gZyohlW 8709wzfTJ+OrH3BSaoUJbeYvv6mXfOQOV9W4sHbBfPO/D1DJOITFJdLlP8OTU4QSyrqa mW1lDkvfVbtDJ4EiiyFCIo+WJOUunYkB8amASR5Dw/dT+iV4kpttsYyJ6pBg5cQ6KIKG o8aA//zyNllsSAMtVP07ER9cHmLpP/6sA/uz4w2kR8QkUgGy9vSHiGQ9BBuf06+KgxY3 PxUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738962312; x=1739567112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=al3MlzeKbb5xKN2DLd0+R0L/gCIp0KF7BK2ZBfduwME=; b=PMfP+N5vBKSYs9hfd+2CndZgUHdeVWgUY90LoC1VDGDYSr7vmcPPb0hZMOKF0Gr9fh qzdY4eqH+Je53EQXpFsIjxKm4bOza6xrivxJY1qJLxAcxTDL/LkxH0prGGKKl238i/BY H0X4v7e+DMIBM0M1gKsgQPR9u5ZWPLs8Hks1F5Z8jEIrld4zsfuDV33wRFYD7dxepxlP frs3K7HTr23VqeJxlphNiHQsJcCl0voZ9sGFf3ZK0tMEgz2cH+eXI0w9uJ/b4yMYXIGo kJ7aV0HmZCgIE9ewRs/DEX7cps6mJZOuGha1QGc8o7cCgDvyBxHx3cnLtsW7Lrpz7qGv 5tbA== X-Gm-Message-State: AOJu0YxmpuCIAKUD4DrIlyhOSHuXlaYlSm+Ck+g5ABjnHsg/KHF8G+dU tnVR17Im7XphHH0LPAZeYMFZGOcMVMrNIWHURHb1CVlPzQYQsMuv X-Gm-Gg: ASbGncvBVaH13PHQij36hT1+si8j4+UJaqnDNDgRkNJlGRO1iOCHfF+UR87iH+egpnV 5cHdhu2N4N685x46+zCmkIKQqVwFH0BCYJUWwhZ+p+L6l9xxJ9fE0dV2ehk8eTMwVtPeEmfPbID pGHeUJEKmgDCNGL0c4KTC9hscCGniHmm7kYF/IYdk6kZx/2DQzZxrzzuLu+ErDjI8jpatie9Yv7 XZMSL+P+gsx/4Z5IozQT5p1GlmQc4kY9UYuYGl2Pm4tKDs7taK7p/qD4lUJw4e2ByJv8dWp28p5 87aU1HcSAoag5ejva5C1d2SDbv+jcHylka0vC9t0E9jV3nyrXug4c3CpHKdBp0dJIA2R37B0vXR aEUZFaQ== X-Google-Smtp-Source: AGHT+IGaFGrK/oHBeUAN6W81nefHSDeh04BggYQwd3ksoASNheXVew+4zx2BoHHZn+81jvx/b+VINQ== X-Received: by 2002:a05:6602:474b:b0:84f:54df:dde4 with SMTP id ca18e2360f4ac-854fd89b9dfmr545035539f.6.1738962311927; Fri, 07 Feb 2025 13:05:11 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4ecdc45deb8sm454961173.114.2025.02.07.13.05.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2025 13:05:11 -0800 (PST) Date: Fri, 7 Feb 2025 15:05:09 -0600 From: Nathan Bossart To: Melanie Plageman Cc: Pg Hackers , Robert Haas , Andres Freund , Peter Geoghegan , David Rowley Subject: Re: Trigger more frequent autovacuums of heavy insert tables Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Feb 07, 2025 at 03:57:49PM -0500, Melanie Plageman wrote: > As for relallfrozen, one of the justifications for adding it to > pg_class is actually for the visibility it would provide. We have no > way of knowing how many all-visible but not all-frozen pages there are > on users' systems without pg_visibility. If users had this > information, they could potentially tune their freeze-related settings > more aggressively. Regularly reading the whole visibility map with > pg_visibilitymap_summary() is pretty hard to justify on most > production systems. But querying pg_class every 10 minutes or > something is much more reasonable. If we need it anyway, then I have no objections to using a freeze-related metric for a freeze-related feature. Okay, I'll actually look at the patches next... -- nathan