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 1v6eVK-007o3W-Qq for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Oct 2025 00:27:34 +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 1v6eVI-00Dv84-8o for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Oct 2025 00:27:33 +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 1v6eVH-00Dv7w-VO for pgsql-hackers@lists.postgresql.org; Thu, 09 Oct 2025 00:27:32 +0000 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v6eVG-000kw5-0d for pgsql-hackers@postgresql.org; Thu, 09 Oct 2025 00:27:31 +0000 Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-33082c95fd0so560118a91.1 for ; Wed, 08 Oct 2025 17:27:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ardentperf-com.20230601.gappssmtp.com; s=20230601; t=1759969650; x=1760574450; darn=postgresql.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=MytrBcz7U/bf5U6tj/Sa1eyhE1B2ONbfdbbwx8ozzVk=; b=F57I6mgsyNGzs1HV1hlJu237nbxtB8kz5VsSUW4xFue+d0dvFepBbIoPyzeXpW9GVZ /TUCDS5H236NODcbjv5wpXhv9I4EpEexDp7x7Sj0muoSCsyjop9/nbTHs8cLmvsFJ6Cm 0mp+im72QXU5ZOck2H8L+Vmub+L7sKsHwSnNCSNG26aga0PvwUg7Szm1QdcFA+Mt5T4r /e1ZqNn1hXOhDJr/uwlz6yjFIEl2xDAgHcNScV0ZJB9fwWsCkkT8XDWu6VA8LL+FPZHe 4y+WwJE92sugFYlK8HX25uiuqzCP/70+/A/Bil814YZ/MnJlLdmR5x7xNAeac/pde5bG OPdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759969650; x=1760574450; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MytrBcz7U/bf5U6tj/Sa1eyhE1B2ONbfdbbwx8ozzVk=; b=VAK2nc9+5WMNXQ9YfBxaFBJqPX+/SVEYxB4PjMhQaE5r7hzv221nG2bjH8599P/3Hd DTclALy4t4bUxduC9IUzpUGzJvRQATrSV+stQO1tyGN3wURq6DSqgJFFuA4bYDAjEWmC fjRlZn/N47Sdh8tB1d4BhXeMnUKvZnpugtQDM6KRjreV4r1FAOdtvW7Pp5T4cPYBtJ42 qlGvo/fbO67OMjJMsQgfjl7DzJXqAWvS9irH+oocJ9S1YVX4cf1ltkrgqSHPIqCFK5TY iGeFefIN39kGpx3JsH+znygfPtdKbOik3fTvVLrwzJbwRkZxvMIhYGeeCXDnXuVfLB3v jdAw== X-Forwarded-Encrypted: i=1; AJvYcCWnl84BsckS99BqRYt4dbxSnXHSkAt3QdsgywwWyWs+p0JLTcksN3dN2TAzZGfDURQM33a6zQsfPDvdd1Ih@postgresql.org X-Gm-Message-State: AOJu0Yz98mBOQfQj5uIq1owj+UqCskNigEWlgiTrzozkKyMKItPYJLF2 VUCn/L6GGeg2VNU4WHzqGIykz/OEZQeRDiOhXr+1fLTApEWj1ILjeTdhqfBrVI/QxA== X-Gm-Gg: ASbGncuG8fg/ElAQ3Qdooxgj0IzPbP8+jyleNrS1lOqAx22uw7AcFc4zvXWTRteDsCa zdHczq4yGcS5yEzno2itGRTqVlDeUNbcYgKjmmJ+/3ppi9aJ+jdofp38Jt1MkYl8flddjY4afHa JmQWuhFtjfqRFmw76G2d1m8YHXvyMVWqVOwE1sX3OIrFPbl+iLelE4C1kdR3q6Lr8IDL/5QBwt0 LcLUWYE9hXVDgURtiaW+UoT30v0wjkzJmnlYbYvqQYxyV6jRVvsCidNMhTMZdzkMKrEdLPgPoED jMDR1bpiMR10E40kfblF+m/MomvZLBDD02tVbXruRKktUi6VBJPx+o6DSEqNPhoZi60BpsK+XaI f2ed0vP8EBSjsjH7QJyoZxDli9Wtuzf+8Rsmz+FsXR1tjddjfktsBajip4KMGFUvzGGEfOnzshN WIshvqyYJ+blo= X-Google-Smtp-Source: AGHT+IHp4YTshgXi53bHQO5laBxV99i09zseVacJOuM1ZQhAgzC78Mz5ptxHck3nzHfNac1BX7oVeA== X-Received: by 2002:a17:90b:17c3:b0:335:2b86:f319 with SMTP id 98e67ed59e1d1-33b513eb68fmr7503805a91.35.1759969649608; Wed, 08 Oct 2025 17:27:29 -0700 (PDT) Received: from ardentperf.com (97-113-159-222.tukw.qwest.net. [97.113.159.222]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-33b52899a7csm2098076a91.0.2025.10.08.17.27.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Oct 2025 17:27:29 -0700 (PDT) Date: Wed, 8 Oct 2025 17:27:27 -0700 From: Jeremy Schneider To: David Rowley Cc: Sami Imseih , Nathan Bossart , pgsql-hackers@postgresql.org Subject: Re: another autovacuum scheduling thread Message-ID: <20251008172727.3befd129@ardentperf.com> In-Reply-To: References: <20251008164057.6bceb9ed@ardentperf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 9 Oct 2025 12:59:23 +1300 David Rowley wrote: > I believe that is methodology for processing work applies much better > in scenarios where there's no new work continually arriving and > there's no adverse effects from giving a lower priority to certain > portions of the work. I don't think you can apply that so easily to > autovacuum as there are scenarios where the work can pile up faster > than it can be handled. Also, smaller tables can bloat in terms of > growth proportional to the original table size much more quickly than > larger tables and that could have huge consequences for queries to > small tables which are not indexed sufficiently to handle being > becoming bloated and large. I'm arguing that it works well with autovacuum. Not saying there aren't going to be certain workloads that it's suboptimal for. We're talking about sorting by (M)XID age. As the clock continues to move forward any table that doesn't get processed naturally moves up the queue for the next autovac run. I think the concerns are minimal here and this would be a good change in general. -Jeremy -- To know the thoughts and deeds that have marked man's progress is to feel the great heart throbs of humanity through the centuries; and if one does not feel in these pulsations a heavenward striving, one must indeed be deaf to the harmonies of life. Helen Keller, The Story Of My Life, 1902, 1903, 1905, introduction by Ralph Barton Perry (Garden City, NY: Doubleday & Company, 1954), p90.