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 1vC0Lu-007py2-2y for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Oct 2025 18:47:57 +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 1vC0Lt-00B867-2G for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Oct 2025 18:47:56 +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 1vC0Ls-00B85z-Oo for pgsql-hackers@lists.postgresql.org; Thu, 23 Oct 2025 18:47:55 +0000 Received: from mail-il1-x12b.google.com ([2607:f8b0:4864:20::12b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vC0Lq-003Onj-01 for pgsql-hackers@postgresql.org; Thu, 23 Oct 2025 18:47:54 +0000 Received: by mail-il1-x12b.google.com with SMTP id e9e14a558f8ab-430ab5ee3afso10715425ab.2 for ; Thu, 23 Oct 2025 11:47:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761245273; x=1761850073; 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=MOaMfRIMtibMdaEtvyEbTQudQCJNRLmNXFQtkTUGyOQ=; b=UJ4QgBKn4+qr2N+o1ovAPBebdtzuvBP/mLsJ9pDutpH9/bT82hwpoSwg9pwwzcqCEH jfp+dx/RvaT7KsWqtDmH8aKy7tRzU4BxoQ4uhJMoylGyPzqSr5cDKAJiXIKXWJMn0Vzv /zvsScbkwDUZI83b5x2ebkt43bjPT3IdE0rqrAEqVoUuZETyoW3pVocwWC9taivHLfYF Sv4BMGM8ZrAZK4B8ybOcYwz3K5ZGRoASxBcjXu0K0pQ/2pWuFu+i0vV97b5RzevwoChX RyTi5N3LeWJKsdeYgpIGJHuSk8eeZF9VIwkQLM5HFJHqVbZO3wwhZNrftjVUIRgaoiY2 i6cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761245273; x=1761850073; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=MOaMfRIMtibMdaEtvyEbTQudQCJNRLmNXFQtkTUGyOQ=; b=HymO2r1JgnNhjwx3Bh42EPlZL1M6+qVmt1RFdGCcKSSV+Bl443exRVEIPcctbsWPd4 JNP7hRVVQjgd7gQFpS7Js7zhLMNU8P9Qfcp3GDQ9zMbVmRRDQNu4xzxTgxPyFk98gnsy Dwg6x6PY/JWpVvO7MYbPzEHPsHxRCt3zpGRykcN4tAVsPDHX2PAy65Zu1DO3Up0bnUGt Yx+403b/hozSX3yPnWreBSqO+2U3LOgZeFxhOrlItW3w7DIBbPlECCNxfPfgKoxQ7n+R 4KikwXTGPt/1pBNNn3iCWnSycdcdKIoo2JraBrT7U52rEZqqjk8y/rk6sQrUpdFVlxJX BEDw== X-Forwarded-Encrypted: i=1; AJvYcCU2rVuxeztuZKVGwhw6IrFyzSj7PT2Rp1wvumxLqW4t+B5vV+M2kj5DHsO6YpK1nmud5LTk7Npev9+qqAG9@postgresql.org X-Gm-Message-State: AOJu0Yx+tivviCLs+nRCtHfIyqpuLaxxe3v/8yE9ePOhc7ctNOb9qEtW W46pFXOJ+dyqVwlrgSlesx3ZPsGQE3rHToJoKooTDNTIF63zMwtldgv7 X-Gm-Gg: ASbGncsTf5514WbVA+Pt0yCovOBxxFu+qvzv74qjeI/SPW5NJ5R4WMe0HAAAyFmrPFA lf7fReaBJdp9DUhfgnFrkXTt9E5USGea7Wc5g1yDQFXTY/y0/pOIKSyIxUneSfjS1ku3dAcPYy2 QRVknidoXBFd0qbcz3mxwXoeq1R7P1ia9qg9E8IDCq3U2H6EfWAb12Ojdr6zfotlb3QO4LYwE/p Tee4iuXMSggJguK+Vj/MKQLl+4kC3y3Md8X5iiYTTxnSAhU0R0aOOrQgSHQ8rR2D4HKvxksBGhg YK5Fl1kPehGccc9fRi5ZqKzkPWziUtm4GIsvzxt8nruJygWpn0+YlkCD9AYj2TwPOeQG6+2Sq0S ra7jTn2G2R4rkkaOmHhQYM3gmSX4qiLfidvTtmEV8bUtrzw4Ogp4Vxsgszi/Ct7ZHPdhiQjBA6Y mPyil5O6DpME5kDBbWnN3LvQq+r2rxdlHkR0unWVsurN7JM4zGKdko5KURMhVi4cXeHJHcRLWzT A5O X-Google-Smtp-Source: AGHT+IFU4EAAoyvMKkSG64mE17PlX6+W8A7+i0H1+FRulS1M4Rpra4yjzoRPn4Po9pYNZOl5zb8+zA== X-Received: by 2002:a05:6e02:2591:b0:430:c312:214c with SMTP id e9e14a558f8ab-430c5234d18mr335118985ab.5.1761245273075; Thu, 23 Oct 2025 11:47:53 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-5abb85c3537sm1197831173.45.2025.10.23.11.47.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Oct 2025 11:47:52 -0700 (PDT) Date: Thu, 23 Oct 2025 13:47:51 -0500 From: Nathan Bossart To: Sami Imseih Cc: David Rowley , Robert Haas , Jeremy Schneider , pgsql-hackers@postgresql.org 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 Thu, Oct 23, 2025 at 01:22:24PM -0500, Sami Imseih wrote: > I was looking at v3, and I understand the formula will be updated in the > next version. However, do you think we should benchmark the approach > of using an intermediary list to store the eligible tables and sorting > that list, > which may cause larger performance overhead for databases with hundreds > of tables that may all be eligible for autovacuum. I do think such cases > out there are common, particularly in multi-tenant type databases, where > each tenant could be one or more tables. We already have an intermediary list of table OIDs, so the additional overhead is ultimately just the score calculation and the sort operation. I'd be quite surprised if that added up to anything remotely worrisome, even for thousands of eligible tables. -- nathan