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 1vJJ34-000e4K-0z for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Nov 2025 22:10:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vJJ31-00EeNy-2Z for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Nov 2025 22:10:39 +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 1vJJ31-00EeNp-1L for pgsql-hackers@lists.postgresql.org; Wed, 12 Nov 2025 22:10:39 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vJJ2y-007Q0P-2n for pgsql-hackers@postgresql.org; Wed, 12 Nov 2025 22:10:38 +0000 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-640ca678745so269452a12.2 for ; Wed, 12 Nov 2025 14:10:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762985434; x=1763590234; 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=TjJL+RWpdDUQnGJ5aCBnNwPzrwaoe1FaIyqix7R6T1Q=; b=g58flIgN5jPLahbq9VZHicZrNeDWLt/+wXGE2/NTAXGwXNFG8apWu5tqxaQ9GHkpgf 875u6bcTrWv7NFpj6EazXyMsy/jvKFGnbzg/KkFuXfGsioYWHM+ryLY8V9lJDER6vhKC WFn9KJWBLy74megqylBVX90fVHCkUiUteIPCbzc4vMA/x+Z+DGBFnitlbkC07bMWzQbl LivqtkrYYsa7KG5YPhSapcRFt0dgpxhBi82LxPCdnTwZWWiIA7u+VWQorSjF8IEKFRP8 qIWsHZa44HEoCoSVxZLYREjYUD5y1JZ0p1K4a4yg8tXLz7XdTknB0QIOX/BXvVPn7Jkl Uzrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762985434; x=1763590234; 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=TjJL+RWpdDUQnGJ5aCBnNwPzrwaoe1FaIyqix7R6T1Q=; b=fsCuyD16HGxGP7CtcW2pqk2azibl2GvKZ6/pxEcGBfhBu6wSDrr+cBi5A15WJJn9+F EssE2xuI0lmoIRuJQjH1AldQTVkGt8mWiNgx1gCy8At2wIQEK5z7jC65owfBOLR6RSXK XSJb0EUX9sXhmZSGo/RXzVtYT/NfvjkyyC2TtgSxKgAIpMuiYtNUJ5ex5320Aph6kzMY cCS2yyNEXeh/ye6lc+jgbTgFyxg25H8wMpYdfyHGtu9uffLFToNn5X7Xgzai0m0INfD8 yUojPqHHxgeXm42vyjvwiZ8ZIB8Sv4wE2UNXXNoEOrfNOHKdqVk8coepSGDzImLzHIeP KzfA== X-Forwarded-Encrypted: i=1; AJvYcCVv6YPQJU+1MTlsfjHoohX+6oc02d31EE7YqVWhf5lOg3JlQ7pa5C4RRHBcx7fR3QJw42Idz7CNUkuZhzFy@postgresql.org X-Gm-Message-State: AOJu0YxIBljbc9AzkVP0hHvAIlIz6RJ8DD71rjprpWZMbsQjFRPxM84B B6c34Mg5N2rz9Ua+43J/zrDHU4D8cTNRyC8DgeQMrUhYCdv9qzLvq5+7mX59RMS9BAO8P41zfoj 22Rij4fYgSAtiU4HAsy1aXoi4E3glb0E= X-Gm-Gg: ASbGncvr6qdcEJQldMvAZkS3hgZ4TGT8ePF/IYvOnSBmqyh7vkDNehf/45kJsjeWKFa QPjhUzAaNoG8zVNDHeZyTunXVonRQYCCTRZ2FrDdlHvINZXCvjANsL8imhgaSBloRmL+je5OHl+ MSdmxBNFdosCjs54rqxBoxN2thwibD4ZPDf27rcR3qqe08+P8ikv0m1gpZbvJjeLMai6pTF6gxe bqEcI/lWr84KXTzUQCtRzo71mym1dJGckQg/G76coTjceu9MTJsaz4c X-Google-Smtp-Source: AGHT+IHnNxzn1+srKkqqG9cAuv2voAR0z5oPUxUTiJBZyh8MfxM6cKrFWi6/2uVGo/+eKoTX2ZhLdViF6VGFyZ7gUSk= X-Received: by 2002:a05:6402:5188:b0:641:2a61:7da2 with SMTP id 4fb4d7f45d1cf-6431a54877emr3946804a12.17.1762985434370; Wed, 12 Nov 2025 14:10:34 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Sami Imseih Date: Wed, 12 Nov 2025 16:10:22 -0600 X-Gm-Features: AWmQ_bl3A3iVgDNMM95eGmidp6at17M8LVSroVcnY7myL8vU1Kr2woopadWlWto Message-ID: Subject: Re: another autovacuum scheduling thread To: Nathan Bossart Cc: Robert Treat , David Rowley , Robert Haas , Jeremy Schneider , pgsql-hackers@postgresql.org 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 > I do think re-prioritization is worth considering, but IMHO we should lea= ve > it out of phase 1. I think it's pretty easy to reason about one round of > prioritization being okay. The order is completely arbitrary today, so h= ow > could ordering by vacuum-related criteria make things any worse? While it=E2=80=99s true that the current table order is arbitrary, that arb= itrariness naturally helps distribute vacuum work across tables of various sizes at a given time The proposal now is by design forcing all the top bloated table, that will require more I/O to vacuum to be vacuumed at the same time, by all workers. Users may observe this after they upgrade and wonder why their I/O profile changed and perhaps slowed others non-vacuum related processing down. They also don't have a knob to go back to the previous behavior. Of course, this behavior can and will happen now, but with this prioritization, we are forcing it. Is this a concern? -- Sami Imseih Amazon Web Services (AWS)