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 1vzznt-001VtT-0q for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Mar 2026 16:19:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vzznr-004Rz2-1t for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Mar 2026 16:19: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.96) (envelope-from ) id 1vzznr-004Rys-08 for pgsql-hackers@lists.postgresql.org; Tue, 10 Mar 2026 16:19:27 +0000 Received: from mail-oi1-x236.google.com ([2607:f8b0:4864:20::236]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vzzno-00000001TSB-38QW for pgsql-hackers@postgresql.org; Tue, 10 Mar 2026 16:19:26 +0000 Received: by mail-oi1-x236.google.com with SMTP id 5614622812f47-464bc03efd8so7692073b6e.2 for ; Tue, 10 Mar 2026 09:19:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773159564; x=1773764364; 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=w5QU4IKUcx9UJ0JlfyadsvDyH2CuRkb4UcPRAPwkpck=; b=aKMZKmxTg0kE8V2B3GWChz15O5egDkSS0qOiwX+Hn/SKREOcVKIfZngJcCpuCYUgbZ vtsIBhrudUPTRdaKxV5d1+SIvDHlQa3DNEFet1PnN7l+Ce3uw1Awri3N8o70vM0wcXCZ 6p7COwGgbQIxfXCCDOKWwk/TqOoLpxvj3PDj++gbPzph3dBTrBksQOCiGTkpIJqNHaNe mKz5hsWLjhaoV06MjANmwyuHCMrGMlqwVCAl5sk/2Ct9B57bTikVfPYNcyY7Vgw7zLWD SpVl+ugOVwQuW+nm3Y+edzyto8QJkE9eIXBVrxF4erNmQC07aRxtfM7VcpSsiCYwxd1Q /1vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773159564; x=1773764364; h=in-reply-to:content-disposition: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; bh=w5QU4IKUcx9UJ0JlfyadsvDyH2CuRkb4UcPRAPwkpck=; b=L/tzcuPco/DuieZ+Ft2mFzxZWK8BQnIv138wv8imeUctfzr4X9YMkh+gOqopZblHWI 1H/0PjLesB7jlG5uURqC/jmo+h5fN+CQg9NQaPxuWQuq60Byci7DrJOWnVgmzWgjD3qm 1J+WQOnQ5hk9xsjsL/OBy7NjNDLt98q/vYApxd2LyjIW0vELd15Iovwj0QRmV3RMC/jF p2PFTNg7DVygPuHe+6vMdVbES5CTuan01HlD7RWOJBdpBvQo+tjA87vdEwvK5sf7eHI/ iCW6ZVs021Ie4M3Df0PbzX7dBnbUIOP2OuyDv5NpcpyV8qoXYtP3WRt6xpZ+5NERHdIX Qe+w== X-Forwarded-Encrypted: i=1; AJvYcCU1If3u6LXEHd93V3xSYd4qD8pyZsk0f6c9xNASn8HCXRiiBShxUE/lJo2aliCPIXZw5KZBJ9ZT3y71Mpi8@postgresql.org X-Gm-Message-State: AOJu0YzXKBWp1tnHuINFfsWs2+Exy5EN8ktS8m52Yj3frX6ygvml//9Q xc+jlLyRcD73F6+iLWuYPQKFFS23fSpiwq343XTad/Le/7bvBqlnDGWD X-Gm-Gg: ATEYQzzXmPHjS923nQad1mQ4pfIWCiUz0YfM0gC8nCXAhYKZtitg/WO+3E3wsDfsYmj CHXjHO549jTQeU9CxITxizjPfiQRFQn92zA1/cz7U+ho8g3Xv+qjR/NWnBAyIIOTBVM3OHlL4P6 +bZLBxqG9i3/HdFIRXLbeEsZPmIlUCqt2jiS+j+ZCxOSCD8O0jiv9UIOKuShAdPwH5n45gRypbP rSFrIro6WsjuM4I6o8O8ZzhJBVdvumhuefcWRQQosJtfs0jUTE5XEWcgzRCSHmNkl9Cy789LIY9 Lww13B/boQBqNN9puL+HohBp/QpN2DHpRuja3Y/b3C3YBi0acZi9U6hCOf8HLyAafk/4Nm94m0w pyKOjI03qJeIZSEixgEKdwVX4kjkewqXS68B+sijiYGgSTzUbYY525tR2XOUQjhU/FPaSTlnIbW eDjCmJreNr9NzOssPP9B65v+sTk44LBNQgjFY6dQgzH5VJZPA4CjbTtzpkmBKHBcBSHxAX/ANcv YXwoy/6DcqYz0A7/H5w+Q== X-Received: by 2002:a05:6808:424b:b0:466:efb5:9435 with SMTP id 5614622812f47-466efb599ebmr4731520b6e.41.1773159564086; Tue, 10 Mar 2026 09:19:24 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 5614622812f47-466f429c7fcsm5933718b6e.9.2026.03.10.09.19.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Mar 2026 09:19:22 -0700 (PDT) Date: Tue, 10 Mar 2026 11:19:20 -0500 From: Nathan Bossart To: Robert Haas Cc: David Rowley , Sami Imseih , Robert Treat , Jeremy Schneider , pgsql-hackers@postgresql.org Subject: Re: another autovacuum scheduling thread Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="PKfIir+1hRIDMz7Z" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --PKfIir+1hRIDMz7Z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Mar 10, 2026 at 10:06:44AM -0500, Nathan Bossart wrote: > Here's an updated patch with new GUCs that control how much each component > contributes to the autovacuum score for a table. They default to 1.0, but > can be set anywhere from 0.0 to 1.0 (inclusive). In theory, setting all of > them to 0.0 should restore the original pg_class order prioritization that > we have today. I haven't added corresponding reloptions for these GUCs, as > I'm not convinced we need them, but I can add them if folks think they > would be useful. Apologies for the noise. cfbot alerted me to a missing #include. I've been thinking about how we might eventually translate these scores into automatic cost limit adjustments. ISTM that might be a bit difficult because the scores are basically boundless, so we'll need to get creative. Unfortunately, I have no concrete ideas to propose at the moment, but that's v20 (or later) material, anyway. -- nathan --PKfIir+1hRIDMz7Z Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=v10-0001-autovacuum-scheduling-improvements.patch