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 1vCP7B-00DaM7-CN for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Oct 2025 21:14:24 +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 1vCP7A-0012Da-Bv for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Oct 2025 21:14:23 +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 1vCP7A-0012DS-2Z for pgsql-hackers@lists.postgresql.org; Fri, 24 Oct 2025 21:14:23 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vCP77-003bE3-12 for pgsql-hackers@postgresql.org; Fri, 24 Oct 2025 21:14:21 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-46e6a689bd0so24001235e9.1 for ; Fri, 24 Oct 2025 14:14:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bowt-ie.20230601.gappssmtp.com; s=20230601; t=1761340460; x=1761945260; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=NluS7E2fuvfNQCJJ0ZOJqEssrToDmKqQ6awBif5RmmE=; b=zL4VrdX1weKxmfSgxpoWQbAVCBL0FFbxVvbazMa3uQEyJq42OET/Lt8ejemqgNsNqk AYzLqoSoCDJlNCmlx3+6fMpj+0I/NWkodOB6f4LtFvM8fVTbzEd0kqwgExr/V4jyUzAO KpTn2lTRN5YLazBSeYnGbck0m7/Di89gFQrspFDfLovsLA5Rm4u1yUGRNomsauvyxCs9 D9jFW9igN3noJTBTlq0QOZfiVqNUYGq6NPDPfu2zRsX33p4sP5zucKUIHRg0vf7Z/YRR 7IfIPpKGJtrfyhEU6G8r284tCjOo0JhdqCIGzMUUsNnPopl/FylzDv3CoiYYsGdOTRKk 7Wfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761340460; x=1761945260; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NluS7E2fuvfNQCJJ0ZOJqEssrToDmKqQ6awBif5RmmE=; b=YFmooJ3uKudvnZsVsbgwJiAL77SdSRMC9XPY7sOdZUZaNwJw/VW1Q+74CW2HRXf4yN DerRbVvEEf6DulSM+xk1ZdEnMxrPwVLGQtRwpn/C1dTxQvrR50b0zgBNHzDtCH2NQf9A sf0omYGLhBtx2E+EBYg4Ps5ZTdlv8RCw8hopgVhmJDtQZqNGui0xYCwIvZaWjpOjDrio D3ZFd1KOJ21vBIf246WRIfSECL3zKZSgoEIRByG7dz5ly8iI8nBiwvGcHxqtzsK5xLgV /l0OLMBFBF11PveYtmGhnygf+EtWCmz51rHrLkJOK6JubJUgcLFmB0Si+XgpU1rHZ2se sXWQ== X-Forwarded-Encrypted: i=1; AJvYcCWp1HdYIcVB43LzoNjW/F2ZY9Sl8L71SZAR1sQbipRD/EINaB9Wfvap76ixtDYncUAxq5eW8EvAGH0jqZYm@postgresql.org X-Gm-Message-State: AOJu0Yzl3zn19ZBalvSosckEPryucZwYswJyjccnvTEhdrHkrlpEsRW8 9h3mMukINuLmr0xldTE1SzoyWzuM5dIaTgTpJfSg9z/gHFdeGrr7GHtD3KLrUFPZLv0RSousvnw 7JN4CaqEIEYk2nHVu9kWLE8iUqCOerNgyjrarJc2N/w== X-Gm-Gg: ASbGncsS++/rXWmzlgmLfhtK0J5ryh9y6BbvAJ8+5i53Upb1m5SPLIBC2QejZru7nhk DI1zXYqXsC47DUmDd2NKsAPBCAaieuPD6htkpBMQyoZAF6hssyWZ0wwiOfrzB5qOGIPj7QIs4dk p7Isd2He43zBu9ODdAXLiThO7dDrBHIPvOb5AvWSMzvmD5nSQ1L30AC2xV4LMeD2pv2y0XwXt39 79x7M3Y/ovQwwHoi/IPgpdLMmUSzfW3MZEB+yqJhOVIiWmz/gzj3Muar2JhrmLea5IF/YA= X-Google-Smtp-Source: AGHT+IGwcXHmFup1A5ihoHh24cs4DjYPMJN+TIjmRlwlXIw0D6NuPmzVYmAsa0HndGttLIX3YBoljPwV1q4/q1ax0Es= X-Received: by 2002:a05:600c:1f93:b0:46e:761b:e7ff with SMTP id 5b1f17b1804b1-4711791c66fmr255848495e9.28.1761340459859; Fri, 24 Oct 2025 14:14:19 -0700 (PDT) MIME-Version: 1.0 References: <20251008182520.6e05a8b8@ardentperf.com> <20251008184740.328d45de@ardentperf.com> In-Reply-To: From: Peter Geoghegan Date: Fri, 24 Oct 2025 17:13:53 -0400 X-Gm-Features: AWmQ_bmBQTt6VrLSaW49NMrm1eiRT63YKOnYr1KUoZ2fOyERcxhFDVCw8bSeYWQ Message-ID: Subject: Re: another autovacuum scheduling thread To: David Rowley Cc: Nathan Bossart , Robert Haas , Jeremy Schneider , Sami Imseih , pgsql-hackers@postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Oct 22, 2025 at 3:35=E2=80=AFPM David Rowley = wrote: > If we had the varying sleep time as I mentioned above, the > failsafe code could even be removed as the > "autovacuum_vacuum_cost_delay / " calculation would > effectively zero the sleep time with any table > failsafe age. I'm not sure what you mean by "the failsafe could be removed". Importantly, the failsafe will abandon all further index vacuuming. That's why it's presented as something that you as a user are not supposed to rely on. --=20 Peter Geoghegan