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 1sRDdH-00DvKT-Id for pgsql-general@arkaria.postgresql.org; Tue, 09 Jul 2024 16:23:59 +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 1sRDdG-00GV4Y-6F for pgsql-general@arkaria.postgresql.org; Tue, 09 Jul 2024 16:23:58 +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 1sRDdF-00GV3q-Rr for pgsql-general@lists.postgresql.org; Tue, 09 Jul 2024 16:23:57 +0000 Received: from smtp.burggraben.net ([2a01:4f8:140:510a::3]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sRDdC-001ELT-4q for pgsql-general@postgresql.org; Tue, 09 Jul 2024 16:23:56 +0000 Received: from elch.exwg.net (elch.exwg.net [IPv6:2001:470:7120:1:127b:44ff:fe4f:148d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "elch.exwg.net", Issuer "R3" (verified OK)) by smtp.burggraben.net (Postfix) with ESMTPS id 8ADD9C0030C; Tue, 9 Jul 2024 18:23:50 +0200 (CEST) Received: by elch.exwg.net (Postfix, from userid 1000) id 4F7C23AB4A; Tue, 09 Jul 2024 18:23:50 +0200 (CEST) Date: Tue, 9 Jul 2024 18:23:50 +0200 From: Christoph Moench-Tegeder To: "Shenavai, Manuel" Cc: pgsql-general Subject: Re: autovacuum_vacuum_cost_delay Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.13 (2024-03-09) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ## Shenavai, Manuel (manuel.shenavai@sap.com): > Looking at autovacuum_vacuum_cost_delay: > https://www.postgresql.org/docs/current/runtime-config-autovacuum.html#GUC-AUTOVACUUM-VACUUM-COST-DELAY > > Can someone help to understand what a high or low value of this setting really means? Would it be OK to set this to 0? If not, why not? The autovacuum settings link to the docs of the regular vacuum settings: https://www.postgresql.org/docs/current/runtime-config-resource.html#RUNTIME-CONFIG-RESOURCE-VACUUM-COST which explains the parameters at least as good as I could do here. You can set autovacuum_vacuum_cost_delay to 0 - that would give you "unlimited" autovacuum bandwidth (limited by whatever your system and your other configuration can give you). That might create very noticeable performance impact on the actual workload, which is most often rather undesirable. In short: it's possible to set that parameter to 0, but that could well be a not-so-good idea. Regards, Christoph -- Spare Space