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 1vMBAD-00332Z-0q for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Nov 2025 20:21:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vMBAB-003iPm-2Z for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Nov 2025 20:21:56 +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 1vMBAB-003iPe-1g for pgsql-hackers@lists.postgresql.org; Thu, 20 Nov 2025 20:21:55 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vMBA9-000bdH-2n for pgsql-hackers@postgresql.org; Thu, 20 Nov 2025 20:21:55 +0000 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-640b0639dabso2238738a12.3 for ; Thu, 20 Nov 2025 12:21:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763670112; x=1764274912; 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=5H22knFrIOkeqTR582EtqaZDDrIlhNHJxKRZhb9J6u0=; b=jMcFGjgNKBGb7iG1AGHpJxCaEJrPDQfeLPn1BQPtbmAt4mJhqXXdNifETCVjvJp3kV IfDUObeB+g+oZOcj9PYZi4iAEzT2sFMB+CLc510abRilI/hf+O6HiQyiCdVjBUgt+MLU Okv2sIf49hMi4bzcfuS1XI/3VQqreseC9Bl0zeXNNeOrd8yuV+ySIZMcSoW2hJj1rY6h oHPzStzXvijh44fuFllFzg8lermC3fom04AXjKSLXbdLNGwk1KSME4C5+vd4x/RFHZnY nLxfVd6TZz0l5BznaMoIOcEj6BZM7BxSSXQMYwAyHbyJo6OeH5gL463f05EJkdlL71oS IU5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763670112; x=1764274912; h=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=5H22knFrIOkeqTR582EtqaZDDrIlhNHJxKRZhb9J6u0=; b=PJBMZwWj+1FyxpBByd6zoYrX8r91hT4yMXe12hSJjSQmFbb0Fzbm3pvr2xWsyg3Oup 1Ek8NLd8PwPyXabB7OrfFv7r1BMgyMeIc2HUh2mQHGZ04LJDOJKFVBYUisSIiJqPsnTk oBTm7K1/8reXW1gr5qWJF3k29rDv7CuDH+ezyNhox2yLTjbeD4tQOPFCBGUOMh4a8Rz6 jSVvJiHgEbpXSTmFwfh2I2OQf2L1VOgXtdazRowKEYYvzFWfF7nmLBgI9S9/NCoJ894a 5yQclVGjK7VUAZYldIIF5idAOylk14K0iD7BFPKWwdXvACdi+GPfy31fdL+nBAdKlhWj 5gUQ== X-Forwarded-Encrypted: i=1; AJvYcCU3f8F5rJfuhP6vtGS7svyYVRJm3Tl5tXcU/H+7xHKF2kTCZwcu05tgBtBU61gYodaQHInaH9cKvMjFP1H2@postgresql.org X-Gm-Message-State: AOJu0YzPV1vlV7qvQR2X7iEkW1BXeYCw6JhiVa9ObK6x/4TosESQiq8j Q60y2vRWRjZLRS4sJx2s/2BtaX26wpmSJtmnlTI9Mhirp7Q7CJx/JFcM5ogF5dpLMSM6Ho+VC5j lB3+2TlCvYq4AWZsrCxr0kS21sMWEHjI= X-Gm-Gg: ASbGnctMKZNvSL4i9G2JOUi2f7o513a1u/uFikZOM9rcuVxKmsw5bpkQRYH+6ld0FaF 8ksXFmFdfcVWgc1JKqfm4VdMG/CJ2TytywvvTrVpugq8XdosbNxpfYnBhj3d0AL9oqlnZAfe2K2 tr+by0PVHsYZ4MnujXFJY5caY0qQ/9dX9oS+eyVLBP+f1w+9Yqp55oM0gnWY+z1LiwJ+i462hOq qaqneDzJmggNvei/xWNN9mj8chVx2eMVzbUoHktHqLfiHYNwQKLgBF5uA6bJTtFUEeRK6s6DIXB 6hGq X-Google-Smtp-Source: AGHT+IFmM8uXkRa97pnqIUcGfuEPVB9a3sTDy0U1nmMv3MMIe8co7r438fpw5rbbVrhax0bVkmRGHD1az3FbURdEJUc= X-Received: by 2002:a05:6402:1d54:b0:643:18df:ce93 with SMTP id 4fb4d7f45d1cf-64554339cefmr21699a12.6.1763670112475; Thu, 20 Nov 2025 12:21:52 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Sami Imseih Date: Thu, 20 Nov 2025 14:21:40 -0600 X-Gm-Features: AWmQ_bkPUTOQyTKaWo_u34k6QIc_Eq1MrhFixx0IcNLzIUz8BSrTDjHFEBGIfDI Message-ID: Subject: Re: another autovacuum scheduling thread To: Robert Haas Cc: Nathan Bossart , Robert Treat , David Rowley , 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 > something that just lets you get back to the old behavior. > Technically, the latter is good enough to avoid any claim that we've > regressed things: yes, that is the intention with the GUC. I am worried about cases in which a user has no way to go back to the old behavior if the new prioritization strategy causes pain, for some reason. > But that only caters > to the scenario where the current behavior is good by accident > (because it can never be good for any other reason). Well, maybe it was never really good, but it was the only behavior, and the user tuned and tested their autovacuum settings with this behavior; whether they actually kew it's based on pg_class ordering or not ( I know users I worked with that do not realize this ). I think if we are to think how we can improve prioritization, the thing in mind is what can we do so users are no longer required to schedule manual vacuums for specific tables ( which is essentially how users are currently prioritizing tables ). If we go to rigid strategy that is being proposed now, will it reduce or eliminate the need for manually scheduling? I am not so sure. > Don't take this too literally, but just mooting ideas wildly, suppose > the scoring has a wraparound component, a bloat component, and a > reloption-driven component, and the former two have a weighting factor > that can be adjusted via GUCs. If you want to shut off the new > behavior, you can setting the weighting factors to 0. Something like this could. be better since it can both give control over prioritization and allows to revert to the current behavior. -- Sami Imseih Amazon Web Services (AWS)