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 1vC3yh-008X7h-0B for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Oct 2025 22:40:14 +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 1vC3ye-00CIfk-Ga for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Oct 2025 22:40:11 +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.94.2) (envelope-from ) id 1vC3ye-00CIfb-4p for pgsql-hackers@lists.postgresql.org; Thu, 23 Oct 2025 22:40:11 +0000 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vC3ya-003sy5-2g for pgsql-hackers@postgresql.org; Thu, 23 Oct 2025 22:40:10 +0000 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-378cfd75fb0so14228481fa.1 for ; Thu, 23 Oct 2025 15:40:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761259208; x=1761864008; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=gTk7B0/arEPLlnYirWGA/DlU2fFOBNALcAN+Jqz1PCo=; b=cCcv7VujU65RijAv7NVbvKP9iTcOVYL6Rk70W7rIIdSEWwoUu2qS2lvZPwc+rwL0DU UxEe/0Hohs5Fjd0lgfqAHFerT8RKekXsM/y8EqTeTc7rWMZiMl1cUHOoLcd8At1oeRkT zCd8GxSWEPWRmwmnuVWQhPwZ9moxPmIJL/Hpn+lSaFHGiqiw7YmGRAoFcjtioocZC+bf XLsTJrm22DmDSEBArvM5Ac++Z+aj+qTbEa/S3qpZsKLyWhls+CvM1NGFA+e7WTStk6A4 rC2ivCXMUTSen1GXjvWiPrLfTwHiPe/JoNsQwFwzMZZHGnbSlCnDe5iZtp8PJSrnJOe/ EhEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761259208; x=1761864008; h=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=gTk7B0/arEPLlnYirWGA/DlU2fFOBNALcAN+Jqz1PCo=; b=sxQXcErpWKK/IjfNjKYT9sU7fQtEqW1vJ4WVIwpwZ3sF/iDGjS4pjc8vtIhyiGyyHr ExRJGGXRYpm2u1PMrM1Tdlnz1/2aTAOClF2K09KbIIp0JVzZZ/bLWZmyMdn04mXEaQYv tpZyQATkov5rdLxzMSEiIY66eolTX2SVYEUV2WmP/kNNL8iPlGjMYZFb8M94TF2/QXlX Lmye3GDDvC1o4aZTogT3VgKdTW6806BUz92zHp8wN+Av4L0s5FKasVHtZMCQ+1GudHIW Fhn91fugrvgSxiyZu5Xk4soAf5iWS27FrupvvSvvJR7r0WKCNKPp7gYMr7b/lpOUqaig 4FAQ== X-Forwarded-Encrypted: i=1; AJvYcCU3x0aVDl9YgpzCFJOGOK5Li4Jxfp2i4H9O60A/ddpKXgGYRhhRun3SPw6UqpCmsII7juUYfVE6OI5Bk/db@postgresql.org X-Gm-Message-State: AOJu0YzZkZX29Xp1qEcYBBLA7Gtw0pNm2uQXjQIxgomszNFV/2LJfrLn Q1tsnNp7268t5p/mXg1jFJGefV1F4TArIDOVxqt/hr+nNrVeU5pO/NvMB8r6DAaqw6q39p7A7R0 /p17B2kbG+1C3gpyH4gnFKRG6gohq47M= X-Gm-Gg: ASbGncskjo6uG/RuK8vSqWYDKNLdwIVfZRm18+vG/3AMCq82snWYExkkgSFhjMiW8v0 wS87NpEwNxE8Jai7Mkc8Ilggf6Vuglb+GLn7a+htdXlT5fvq+hTSG1gUXTaVirulPNkvDkSBuPo 3GOD3UbgMwmPivgUf+8Df7EX2towIyVbhYkpYMuoiRLgmf50izNFeYTizg+5Ufkvm95bOq6agQS 71n+fGofzkAw5/CVH8IzzT7YY6n0/bGzxF49Wrsvf7OeORo39qJ2QAQrKQgv84kEAvLAX3u/Xs6 cg+OS3rd14ra7pbADmlbmh1AmPdD6XS/dv558ppNAMWhTnn5M+U= X-Google-Smtp-Source: AGHT+IF+HU1T7qbW7Jlp2kkNLJLKl/QQlyBYTaYI/5sw+IjNp7xlsx3xMbM1igyAlYn/515k9bFiGPDOgqJN3JGTczQ= X-Received: by 2002:a05:651c:908:b0:372:8f03:b73f with SMTP id 38308e7fff4ca-37797a79004mr67908001fa.36.1761259207612; Thu, 23 Oct 2025 15:40:07 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: David Rowley Date: Fri, 24 Oct 2025 11:39:55 +1300 X-Gm-Features: AWmQ_bnv22oGX5v-qy6bNgq92okmnXCXfsnD7n8C-MKwU1N6Fwr3d1fvXVc5t5k Message-ID: Subject: Re: another autovacuum scheduling thread To: Sami Imseih Cc: Nathan Bossart , Robert Haas , Jeremy Schneider , pgsql-hackers@postgresql.org Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 24 Oct 2025 at 09:48, Sami Imseih wrote: > Yes, in my last reply, I did indicate that the sort will likely not be > the operation that will tip the performance over, but the > catalog scan itself that I have seen not scale well as the number of > relations grow ( in cases of thousands or hundreds of thousands of tables). > If we are to prioritize vacuuming by M(XID), then it will be hard to avoid the > catalog scan anymore in a future improvement. I grant you that I could see that could be a problem for a sufficiently large number of tables and small enough autovacuum_naptime, but I don't see how anything being proposed here moves the goalposts on the requirements to scan pg_class. We at least need to get the relopts from somewhere, plus reltuples, relpages, relallfrozen. We can't magic those values out of thin air. So, since nothing is changing in regards to the scan of pg_class or which columns we need to look at in that table, I don't know why we'd consider it a topic to discuss on this thread. If this thread becomes a dumping ground for unrelated problems, then nothing will be done to fix the problem at hand. David