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 1vE8Z5-0062RG-Ks for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Oct 2025 15:58:22 +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 1vE8Z4-0022i9-C8 for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Oct 2025 15:58:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1vE8Z3-0022i1-VN for pgsql-hackers@lists.postgresql.org; Wed, 29 Oct 2025 15:58:21 +0000 Received: from mail-il1-x129.google.com ([2607:f8b0:4864:20::129]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vE8Z0-004uRr-1v for pgsql-hackers@postgresql.org; Wed, 29 Oct 2025 15:58:20 +0000 Received: by mail-il1-x129.google.com with SMTP id e9e14a558f8ab-430e182727dso31917295ab.1 for ; Wed, 29 Oct 2025 08:58:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761753496; x=1762358296; 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=tixztz1hn8E+YK45w9iONkCbWziR0W7GB5mdiIW8WMU=; b=a9RyFLFfXhhanq7ZUW8llmuOT5hnUI6fgujhTYbQGufo9TzxrU1X6nuEGs+mWj+XVM J0kFOwujNjktu0iNgC7UClgG92sZ/4QutDKH88pPI7s9Ehc8OqL4lsZjdhc2TBlWCRWX CusHswX5KThipe1icz2tQ0kgProg3KWC/2Twi5oYUlw/SZf/QFx3Qi8YKq32E0XITAYX ULEAzx9crYsUE84dqHOF8nhBmRluW96rALJxQMxRcU4Z6yP1ntCzEWstYtrcfsRG7Pt3 8GgzQBgj6/xWZf7pjuzvtcIEz4NF9sU9SYyPNzgXKRwas49u0JJ5svtKw0W2oZ/ATUaV eHDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761753496; x=1762358296; 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=tixztz1hn8E+YK45w9iONkCbWziR0W7GB5mdiIW8WMU=; b=GLUwwaySinfZFKj3AE1SXVYn0cWx01LLfWmHJ9gDJWUHkhtMBA8pUqRtneYZ2q9HMC ivcEOSIE2Vry4m3x/nHGuVns0kmcBVAGLpxeCW9zJn3aZ+9TzebFSaPeTOnVytW9b8m6 scQj9vIRgrAkrXPNrMgGaAyHSV9a6pm6XH3pcwqoZT11vetxH8c6uU0vSU9/fycvBhuw ffZJ+6yrLHsNGBsjfkAs9CyR/D6gTORcsVeoZH5Z3sHLEwsTZu9MnhQggQp1Nqwbju2t wbG6TGtdIS06jYXFCm0ubO2KlV+RZc9GiPLi71x1wCWX1w+WAJ4DKld496OiP5jXaMmb ccbw== X-Forwarded-Encrypted: i=1; AJvYcCXiO4dHGBadja47JgSgCQbvyD23RDhOjBY4Zq5wfgJevHHgztrEW11sIkrZzvpr7fwo8cne7p4lgkkh+eSm@postgresql.org X-Gm-Message-State: AOJu0YyhHDisQfL3lWuPkSJNI6Z0kJKqSQ0PM5krbQ2hAfnPIPCFx0ob 4ArjYsn2jM448LXKpc+TCEk1mjr91J/P2THDpTVka8xtaUmEPe36nPGy X-Gm-Gg: ASbGnctaGTemKJBI1Lnk2zKDpr5HEoPIdjgRUABIDqKz4CV9D04N01gbbbdq7YccbDf lstpOM9uNWGRNJiLxbiJongUzYtjX32kCstXbEjUAt13ZXg7bbTO7y32p35LnAFc7vPRlLGgHBX vWUCCFi20Pi9cty4TmZBebUBjuTyIo4WFG6rBVQ3znPke51BB9+MRPijFgRitsWYCTCi1wzO6NX aYTgyPWRcz8MmwbVwEXVCNYLs8P4a65eUAO3xmyAKeOWhpXJf9xk69j7dDkZVzH8EQ0FGDEWPoQ aGzr4Tos898ALDcV0E1CsGVmPioOVUScV97PSLyhmkyT2jTYzHpqK0OOe0KZFXB8dWG/jz78tI4 ZoKMLJ4VHGjr8oOQqfFOU21uxVKRMLaEn626aclVnd6KvuHD0jMf8s+M3QnG8yT2qZ1Dd4Toghq gq8Jjn+e/GnxzYxOEE6jek+/9WU7IfEiBC/xSQvElP/h2LVG+W9yo3uOEkX0DUDXPRiQ== X-Google-Smtp-Source: AGHT+IFBJJPx+K8oyRVq/2KsgxGwUW+s133Q+Yj6B69wkwrZYbBkQglRUivtm/NTw/W7aQvzev7Qlw== X-Received: by 2002:a05:6e02:8e:b0:42d:878b:6e40 with SMTP id e9e14a558f8ab-432f8fbe948mr56281005ab.13.1761753496354; Wed, 29 Oct 2025 08:58:16 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-431f6898aafsm56497395ab.33.2025.10.29.08.58.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Oct 2025 08:58:15 -0700 (PDT) Date: Wed, 29 Oct 2025 10:58:14 -0500 From: Nathan Bossart To: wenhui qiu Cc: Sami Imseih , David Rowley , Robert Haas , Jeremy Schneider , pgsql-hackers@postgresql.org Subject: Re: another autovacuum scheduling thread 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 Wed, Oct 29, 2025 at 11:10:55AM +0800, wenhui qiu wrote: > Typically, DBAs avoid setting autovacuum_freeze_max_age too close to > vacuum_failsafe_age. Therefore, your logic most likely uses the > vacuum_failsafe_age value. > Would taking the average of the two be a better approach? That approach would begin aggressively scaling the priority of tables sooner, but I don't know if that's strictly better. In any case, I'd like to avoid making the score calculation too magical. -- nathan