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 1w5Vcs-003Jyu-1C for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Mar 2026 21:18:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w5Vcq-00GZGL-2H for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Mar 2026 21:18:53 +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 1w5Vcq-00GZGD-1L for pgsql-hackers@lists.postgresql.org; Wed, 25 Mar 2026 21:18:52 +0000 Received: from mail-oo1-xc31.google.com ([2607:f8b0:4864:20::c31]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w5Vcp-0000000125M-0hgJ for pgsql-hackers@postgresql.org; Wed, 25 Mar 2026 21:18:51 +0000 Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-67e00a230adso229199eaf.3 for ; Wed, 25 Mar 2026 14:18:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774473531; x=1775078331; 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=wmIt/tT0AcyCyYCKFLfhKY1s5mbWeKUpCiY38S9SVlU=; b=Qd20cs21S7VyncPBJRfZFqZ1qdACOM9c6zEOUA1e2woJQcgtsIPnJf69+cuR1D6cwj 4CTOPWnBhPhChhYYgihETjUDUF72bsCgk1u/KESfkCB3o4pizM81XmAOAaYXJ8Jwijox pjA8yE2H/G5nqH1peXOi710L5CpRweRZ5TMR0lmmmSeQze+TVqw7/MzmvZRqu1OXoqzY 0pQ5sXvO5wp9S4wbRDGtww5bsOUgTkyYaDieL6Ey64MY1A23SSyryrAH5TETXKgPRgm+ Y6AZsRcN5qlqkr6YUffq0cWNTWgW2hjIgR6SsWn2ecKYQhr8ElianHqeZUQbkSEvMJ6M ZIjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774473531; x=1775078331; 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=wmIt/tT0AcyCyYCKFLfhKY1s5mbWeKUpCiY38S9SVlU=; b=Nq70XLIYpO5jX5JAc6aSpHKuHmKxwdsCMI8IF5N4WIq9sCaNy+unMTWKPkFP3fBYrv LzLzYYBu2p8B0Rb70bgpp/xHWjUOWjLLSFcKz6xjlupk7xUQa/I0yUn5vu0P+5h/C3mh oq1zbGPtJEBUqmHkStaspoVGQVuM07frOYRwxoLYz98V4P/jeN3Q13NW71eU2rZeJIsj xFKpAenKpYH2wkIshJ4ILJY/dI4YHP/czrI0ttO3yqbjvGWwQsVBQU9vfgfDJIIBqmJf nRt/sQcysae5GAbw69+X3VCe9dOAqVkjc/Pi+Y3duQFlzTGKmlDboGY2L9mjoqueEmcD Ym5Q== X-Forwarded-Encrypted: i=1; AJvYcCUBsKKd4wwKxj02qBSqodlIkisa29cg1L3N+cJ/gGLXRO2Mhrq9tq5RQ+BKYw96+NH+hoYAhD9An82ZPRoh@postgresql.org X-Gm-Message-State: AOJu0Yzjx//q5GN2Vu/ew7cjc5PoYozN9Gt4i5vGO1pvl3u0aBZpHa// t249L/jxJP5GgxmJEHIRQXNSQXmUrqGKpyLVlYHVU5THXbADW8vxKuTj X-Gm-Gg: ATEYQzxS/KVDFys5DlTFOrfuQqSoo1oF6VA2d0/bFUZ14vneaT039z9LXDCe4Jmgq+5 HhGYZlytkv7Cx99bqQim5mD4jHrEEUXnQIolaaed3VnnU0Z7binjukQw8P15Jt3jfJJQeRr6rbR dxppQTN9onqmlON4L+enEbiXLIsplYTsF8tkMI+HaFwtzhdJ+mUfQy09C08aM3AS5f/beLRBehX jMmFGQUN4owr11F7/LD8anvpasaakYdqO/sy5owxI1yKqyenw1AIk/ZojxXRSd0iLjrteppJac2 6H8AdULuAsMyXoIXgPAR67sMBpikykqDEmL5VkwKHgMAcUv8gGfRmkpF9lrvAmewaGUzLlu/0iW QSA38SASyasWM+jsC2uJCpB1sjNy1TqeqAu/A2vy715YjWcasDRRrWnbr88EQNpGrKx5Ix1sR33 y3V04yNQ+au33kWwNRZgM/CU62gl10uXh3DoR06cG3MLko9nJfbhXq/zNEy4HA+aLsnrFkn8HuU nuQCIG4BAxGGAPtJAEDYL+1ay23oK1M X-Received: by 2002:a05:6820:1626:b0:67e:df0:c247 with SMTP id 006d021491bc7-67e0df0c4e0mr97060eaf.35.1774473530710; Wed, 25 Mar 2026 14:18:50 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-41ccaf55fdesm242974fac.18.2026.03.25.14.18.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Mar 2026 14:18:50 -0700 (PDT) Date: Wed, 25 Mar 2026 16:18:48 -0500 From: Nathan Bossart To: Bharath Rupireddy Cc: David Rowley , Jim Nasby , Sami Imseih , Greg Burd , Robert Haas , Robert Treat , Jeremy Schneider , pgsql-hackers 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, Mar 25, 2026 at 02:12:16PM -0700, Bharath Rupireddy wrote: > Would it make sense to recompute scores and re-sort the remaining > table list after each table is processed in do_autovacuum()'s main > loop - say, after a certain amount of time spent vacuuming the large > table(s)? This would catch the above scenarios. I see that the scores > per table are being calculated in relation_needs_vacanalyze, but they > are ignored in the recheck path (table_recheck_autovac -> > recheck_relation_needs_vacanalyze -> relation_needs_vacanalyze). I think this was discussed a bit upthread, and we decided to leave it out for now. But things like reprioritization and automatic cost limit adjustments seem worth considering for v20. -- nathan