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.96) (envelope-from ) id 1x15Ax-004yEC-09 for pgsql-hackers@arkaria.postgresql.org; Mon, 31 Aug 2026 16:48:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x15Aw-001OmA-07 for pgsql-hackers@arkaria.postgresql.org; Mon, 31 Aug 2026 16:48:02 +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.96) (envelope-from ) id 1x15Av-001Om2-2Q for pgsql-hackers@lists.postgresql.org; Mon, 31 Aug 2026 16:48:01 +0000 Received: from mail-qv1-xf2c.google.com ([2607:f8b0:4864:20::f2c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1x15Au-00000003KbK-0y0H for pgsql-hackers@postgresql.org; Mon, 31 Aug 2026 16:48:00 +0000 Received: by mail-qv1-xf2c.google.com with SMTP id 6a1803df08f44-90d7fa95a58so19251586d6.1 for ; Mon, 31 Aug 2026 09:48:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788194879; x=1788799679; darn=postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to:content-type; bh=cBYY8zq6h/XpYrmq/PcOpiNRXlCHTRLDTJ/0KJa6iXc=; b=oZCDkEkwM/n56jFsDNgnzpzvyvN7deSaShE+D8tPLbjAdZx6FhgpOUMQK+dRC1AjzD 8kN0KOs9xAb2olPkafVg25z864XuEWD6RUoo2YlW6rYlQmZpPgZXmi3xOkSkq60HCNio IyOCa/HBEWfd2mFx4QKcUEVcLPMbl9HqQ3o8/Pv9Fyx241qa92JM3iDW8AadJ9bqXxf+ NLQF7esvUyllWXNJpCWZbDFt69vGrKl7lVs4oOL2xN1t9cATSW/AXdk3BpadvFMzMz4M iGeBDqxWTyb/qGQ/m9xNeta6sfLOW6GGsPSAm66olVnR5AeJ1xh+BMv8kHYDhxxdQgGn dWow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788194879; x=1788799679; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=cBYY8zq6h/XpYrmq/PcOpiNRXlCHTRLDTJ/0KJa6iXc=; b=Kn5VYgXzPGwNkVMFTgIsOKLYElX1T5CvsrJAMtltUZr/l8kstmK/bC2BzUWGH1pOAB x3Iw9muGnEL5QOkbCKm9X3p7MJZCfd+EedHX7/WPdfuj1JW955xhVkhfoPxwDNvx8h3U LCSiEamiWAozJge7/ukM80748W1PYH0eWCM7V2Jd7dcLRNNi31QLu6IHjNK7J4XxjdkN ungnNqK+HLLfBn2/J4sir14Dp4GgtMclzRNexvp9AQL1yJ2axxLKjk/CaWpFEqJT/HwO xJ99VJXLXa8/2FK9eMDCyWS5bs4nyVnafQBEPQpyNeRXHKLPe2GL3AsulFQEvvBVZxt/ 5eUg== X-Forwarded-Encrypted: i=1; AKwUvBw+uH1ZAq9p0YKwt3Ks5ei1cKlkhc5Je7TJnazj/Qe0fQwKSbRE97SXcDCREb/VT6Fx2ZA2dsMtdNTGY2GQ@postgresql.org X-Gm-Message-State: AFuF++m7G5NVXm8t2fK1w4WY9hkT6dSVwSo5HFXa9JTy9i6hxI0bMHTO CPEUO15odzqKk8ukaCZTum71i4NtPjARb1eiQeEPg7U1dsn1dDNzeJpC X-Gm-Gg: AR+sD13SFxMRf14NoNqW2+ZkmcjvZhZtXnQP9kUQ9VeRx4oBis27arAqroDB9PpvNZD GxXD5dSY51pBKWmzoKO8S5V42VjzAWGVB7cdsld6FjVPa7k1aAgt0Rnsbq81fz/tdPb0gNO2Lhk uooqQhid7jJbQE+BLH30aRrJ2tUOqIxi4Nls9oSXlaKQLNT03S+7R+7/giu7p+FR6MhmmLKpvRg DCmg9F4aHIHoXTA7ICmR+njhNZioRa9MZnY8VFpUxfoADaU483oOIK75A7dKJpNKzYBcL/5Fe8c rPdrs+PyV6+SH7YRV50KS8ehedMpXw4GXvM9aL6yStmpuiIBknevM0fGTqWZdQlZj6ouO1NgFGq mkG2urT93J7aAnpHRQYonz9tfvWu+HgM36Jj/KmF4xHQalS7bGxxgdh433CGH6Y0yMmxi2gPcWc AWoX1Ghhe/qw7jUWG62b5yawYrPBtqijQDxM3Hp7WjwDZbhJBc6ApeQtSSsZPf7ZyIMrAmRCoI4 aqkpPTMIy+at+TcdLj3p9Phc89Ps6mqzH7BeDVwycd6ReunqR4nvvg3bUr70Jzfg6FPs1Hw2AuX 6OU+9KSSxL6qM10= X-Received: by 2002:ad4:5966:0:b0:8cc:d588:4523 with SMTP id 6a1803df08f44-90e929487a4mr26331746d6.13.1788194879181; Mon, 31 Aug 2026 09:47:59 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-90ce4515130sm88041696d6.39.2026.08.31.09.47.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2026 09:47:58 -0700 (PDT) Date: Mon, 31 Aug 2026 11:47:56 -0500 From: Nathan Bossart To: Bharath Rupireddy Cc: Sami Imseih , David Rowley , Jim Nasby , Greg Burd , Robert Haas , Robert Treat , Jeremy Schneider , pgsql-hackers Subject: Re: another autovacuum scheduling thread Message-ID: References: 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 Mon, Aug 31, 2026 at 08:49:08AM -0700, Bharath Rupireddy wrote: > On Mon, Aug 31, 2026 at 8:23 AM Nathan Bossart wrote: >> Claude noticed a corner case that needs handling. In short, if the freeze >> score weights are high enough, the pow() calls can have the opposite of the >> intended effect, since the freeze scores may be less than 1. Patch >> attached. > > Nice catch! Yes, it seems like an obvious issue and the fix looks good to me. Thanks for looking. > Can we add some tests for HEAD for the autovacuum scoring feature? I > understand it's a bit hard to get the tests to run deterministically, > but if it's worth it, I can give it a try. Seems worth a try. -- nathan