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 1w5Vin-003K54-32 for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Mar 2026 21:25:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w5Vil-00GbSL-0h for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Mar 2026 21:24:59 +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.96) (envelope-from ) id 1w5Vik-00GbSD-2z for pgsql-hackers@lists.postgresql.org; Wed, 25 Mar 2026 21:24:59 +0000 Received: from mail-oa1-x35.google.com ([2001:4860:4864:20::35]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w5Vii-000000018bu-2QAu for pgsql-hackers@postgresql.org; Wed, 25 Mar 2026 21:24:59 +0000 Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-40f1ffba6a0so211955fac.0 for ; Wed, 25 Mar 2026 14:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774473890; cv=none; d=google.com; s=arc-20240605; b=MQgkxF7R4hVpPUQOTkru/UOcMNcvEcuOvXZBcZ7Q4kN0p0kojZeoru7ehX4Jyyk2nT xNzlEnUmd44/Pbr+fSFsoV6qxCPo+aIYO+UsQNqwTQHCu3ifMMINYZXMcjBdetENxoRh RYT0ttYwbTKEwuo51d5q0zNGlqtdB09YqvHw62K0AmPoTlbAuPvcZ79V9j8UXsRxFfJW Yk65FcTuRyY70HL+1104hiLxvbSj+VdS+F3fRwjl7MVj/h3c8x9xF2i0Kd0XCcimncz6 KY0LUCQX4yXI/RVH3MrwX56rkyl7Co2bWpXTZc+TGtfUnVsJDekbJiJzAlQ/nLq6w+v7 I86Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=l4+St2b7P7WqmXvBiazqbpZLX4kL++VpTquyLTaWW2o=; fh=9ZhnpYAPVPuKCXyVsFlKdmfj1fUckPdh18CcO3dCrVo=; b=jFSJChTR2eT76Giq9iyWK1NOEp7/9E4VM3VgvTDTDwfOUfXHopynSpKStGCqJihnfd LqSTTA2rlUh7psde19QIrg8Z5tS1mQXN0GPphoAuVJUnyC/KXw91NScKc+ec2zNDzo3O 9CAamQUVanlntSK3ewfl2bXMjAHi9rb4ZOIAHXDElAi1R0+m/rjUXqdvF4DBNUCof9sJ 1WMAqAHUxa18VIv4EnvSmUOXszWwAfi96juUxU1xctKBJCOYTeqlYRUXqXTe2DPmT3RJ h4M25pkloC5DQtK6VIdG3cVclhrUKP92YrLZ4A3yPTDLfmxEv+JOB6iPw07hVYwgbWGl fijg==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774473890; x=1775078690; 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=l4+St2b7P7WqmXvBiazqbpZLX4kL++VpTquyLTaWW2o=; b=ac+IgJUg1fBj8Y099QA6iytgVUMfhJeTaf4hGNnQWtA1AdTL3fgF8XgjwHvtAhrz5M 5BOYxaPR1UKpKV3oOvCgPNyoNMXQ3VLOjCUgArv824wfp6+6OMifkpGWDAtAouCkbEOf eSObjN0WX3SxtqsOVl/KFPn/GCNEOL4cxgY3nROpUk0VSer0y4G3HKYnmqKxQKXH6mBH tDddZfT8MkX5cziVktAHXS8mGG4QI/md8udwpgUtkh6QcLgSECnsJr/fESu7uBHmhX8r k7b2lfc/Tfdimy3N7QXIGfopoYrv1NcumiopMi+hx+VviRe0Ur/OJvLbrgxr2BcDiqdk 7bfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774473890; x=1775078690; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=l4+St2b7P7WqmXvBiazqbpZLX4kL++VpTquyLTaWW2o=; b=Ev4Dr5uq0J6RRHSxw5vE6WWCnkrU3JWD8lVew7If2lF8awnvTFbz+di6GUd1p5ConW WLWdWn9Yye0oiAGm/WDRwTPnwgt7lwgkQeNs7ej4yijEwbHck/gb8bFjazPAT/dHNAqk hhDf9RkF/3PpOMfHUe0Let2MI+y3/NJ/Gb4kG8KgwSnWWyH2jO1EnETuEsCDDLf0AUdT it8xSyPq+Y1NIlKkWuaOnLnnEr6xYW4uiqcn71mchloy6NWeoTe7uSxEdIl0gNSGigzb YeUALo5fUeNsaf2GzRC99Q+52BH8MyQSEl9HU6ysGom+64pGaoHJfKle2mhm952dx/Ih +NnA== X-Forwarded-Encrypted: i=1; AJvYcCVx9Sf/8OPCNsEx0JhlqyDA/ze9wJgzod5OLxjxI8yNFfpvJkNlGVd3dJro1Mj+vx9bHHEhXBdS1Kpl5fYZ@postgresql.org X-Gm-Message-State: AOJu0YwlzYLzmlBO4CsPPNiA9VG63PZ2e5H0h5FuFVENmEIjo1VIQgNe a2PetOIXRkQUUtZzOUab7qIUis9NuQUQ2VQc/uI64rJ9pyl6Fr3+cYaPsyGoVi1FGHy8oA0aSOf C4dyDh3GXO3+/cB2rX6M0AWZ2CNA92cA= X-Gm-Gg: ATEYQzz2YYyILjAmmfQq9n9plyUKaxYLrrRahE4bvo/8FuoElJDCEVmLsXAlokxPVuz m+jMSBd/M80GM5vCVl+oRCOk4/CaA3J92orhi1ocJxiAvLz+12H6qN1JA1pKw+sNOGKYQQDJyph wsp57GB5APCuoxy+A3UXLJEDQ1vgPwicyXhOTSiS32j5WBmHJTDvy0UaRQaxA2wbqkKmNg+m/wE 7u3F9o7IEcShoHpweBHayE7sjEphVSr3h8XLtGNQAmltCpyyZD0XxYdYdGg2nicPUalbiI15Nns 70ebRA== X-Received: by 2002:a05:6820:1356:b0:67d:f874:1870 with SMTP id 006d021491bc7-67dff574c2fmr2775631eaf.60.1774473890688; Wed, 25 Mar 2026 14:24:50 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bharath Rupireddy Date: Wed, 25 Mar 2026 14:24:39 -0700 X-Gm-Features: AQROBzDb1Ar0hBMGrW7ZhwSAP5ZEgXy9znEA_0gfVNe5dKRuD8oPuL0TJly_Wmk Message-ID: Subject: Re: another autovacuum scheduling thread To: Nathan Bossart Cc: David Rowley , Jim Nasby , Sami Imseih , Greg Burd , Robert Haas , Robert Treat , Jeremy Schneider , pgsql-hackers 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 Hi, On Wed, Mar 25, 2026 at 2:18=E2=80=AFPM Nathan Bossart wrote: > > 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. +1. Thanks for the clarification. --=20 Bharath Rupireddy Amazon Web Services: https://aws.amazon.com