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 1vEvUV-003ob2-Mv for pgsql-hackers@arkaria.postgresql.org; Fri, 31 Oct 2025 20:12:54 +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 1vEvUU-000PaR-2H for pgsql-hackers@arkaria.postgresql.org; Fri, 31 Oct 2025 20:12:53 +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 1vEvUT-000PaG-Of for pgsql-hackers@lists.postgresql.org; Fri, 31 Oct 2025 20:12:52 +0000 Received: from mail-il1-x12a.google.com ([2607:f8b0:4864:20::12a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vEvUR-004n3W-0a for pgsql-hackers@postgresql.org; Fri, 31 Oct 2025 20:12:51 +0000 Received: by mail-il1-x12a.google.com with SMTP id e9e14a558f8ab-430ccd45f19so25359465ab.1 for ; Fri, 31 Oct 2025 13:12:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761941570; x=1762546370; 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=YzgB7l623sk04Drg9UZS1GFwu/n0b26768TdX8ZJ9N8=; b=PEAbchdTXxte7l0oQsYvVwfBIN+B8yp/TE3k9Ke9F88RBlHrgYOYA/akSgzweMqSmu e9V1/DLtVstbFstLiwrkHdZ1uWKOFAcpioSju4dVOPJLmrjNj3CVgLbg+JRHAcaH5UmN He8N9GKleXwlwqz5V7v2mcsCr9BI1sJiAO/2ijg7ZS2okxCl6SmJTnW0Rfweb6l+o1Qu 4Dj23yEwDBhrnAlXOy0qgCVLuPyURe4nMPAqeJ4ItAS1hRSwFFBgZKn9wYE6FXkk8pl0 kWk3Jj/eqAUQU6XOg/9c+F3DhOEHFawAtLvfmJ2sa2br50RCufB+rkOwnFWCtaPfeG6t 81ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761941570; x=1762546370; 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=YzgB7l623sk04Drg9UZS1GFwu/n0b26768TdX8ZJ9N8=; b=sSye+8vygDgu+VPSdnolSO4EQfXQyCF2rT0Oo3hduK64CAKLPW1EP1Oip5FClSKqzb XHLHz6ivF2rPZqSuZ6mNj5d6aT0SINkKTg4FcQdPaBg06wv6AGEVDu+chNLD1ZZmpHkb pR7iYu3mfEQ+zgSXEkWOuFqxp7ifxc6OkHSBe74UQGVcv1LLp2jLgXVLNEzitlyHdAF2 evw8GXOE2otYlSxbt9OpJiLrZ03QMy0IWgfWUk41AemmNyZPtOBoIavKyl0gM6bogqSi lNL0cs0zcZpjTe0+QT8WBnbzQCRZCcIOupPcPd8W8yrMafQvYQdvb4WxcxwcKXvJrYQh v7cQ== X-Forwarded-Encrypted: i=1; AJvYcCX6klaMqdyHCUih/sjYw6/9ZkPs/rD1XJFNd2Hox7LQ0YwgaGW3FTm7tHO5304oArRYqG9SuMsTzq5bSU9c@postgresql.org X-Gm-Message-State: AOJu0YyquLNL098hLivj9He7DCVliEut/4CyxiLBfgJ54lrkIz01Tizw h7COKnBmr3H26jU+q5R+dr0uDM7FEkW5See8mBp1oZiDnz2l7MWL+iV/ X-Gm-Gg: ASbGncuHISaWXhaHnC+r6KHTRdhloipuH3t29Rzic7iAfGUkH7wumLB1KYoVY48FzSV mDGY74OQlyd8GAYDP1vcHkV1agOJunRJiWJSCqwUW5IqgJV2PSsIKyBhZQtwI7MTaUDs8rslNTt 18ivadG199K1Lib4o34ud8oaDUheShc7AEUehC7iUAoFoglk+kHx3GnB8GkKB0h/csqogRuEkJU hDM1QzReeZ4wFxULzSyimeQQwFISfqc654lC1Ak9lUQgZkq6r3JD8dOY/xtspZMQkzmheVuf0Jg uVTA1huHXy9gAOawSj5CGbl9PEcRVtXPn8vcroFLcwv2puG1ZQMTmbafzzCFRSBE7I9lOhwpa39 mmztSJoiEGs3gNc1Z/hpabBnKaKOqZVrMU6ep+RRFTLRp0RCpYTMgy6t0m/KFu5zG2kmK3edbZ3 9SdOlCz1PO1Igj9rUvE9Um5Eh/eeJp15ZIzkDz7hpg/eoNFWA5gtonrv8S5zYsWC9NwGa2cH0Gb MvAJhc5X04sl6g= X-Google-Smtp-Source: AGHT+IEGCviRW71IjeiD9/hZwkJh9ofusOAAYUsmkU39fYXiS1Nuf15zXpLgRDgbFWbn9O3NBpuviQ== X-Received: by 2002:a05:6e02:b27:b0:430:b05a:ecbe with SMTP id e9e14a558f8ab-4330d126b2bmr79298005ab.4.1761941570349; Fri, 31 Oct 2025 13:12:50 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-43310245c29sm10381415ab.7.2025.10.31.13.12.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Oct 2025 13:12:50 -0700 (PDT) Date: Fri, 31 Oct 2025 15:12:47 -0500 From: Nathan Bossart To: Sami Imseih Cc: Robert Haas , David Rowley , 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 30, 2025 at 07:38:15PM -0500, Sami Imseih wrote: > Here is my attempt to test the behavior with the new prioritization. Thanks. > The results above show what I expected: the batch tables receive higher > priority, as seen from the averages of autovacuum and autoanalyze runs. > This behavior is expected, but it may catch some users by surprise after > an upgrade, since certain tables will now receive more attention than > others. Longer tests might also show more bloat accumulating on heavily > updated tables. In such cases, a user may need to adjust autovacuum > settings on a per-table basis to restore the previous behavior. Interesting. From these results, it almost sounds as if we're further amplifying the intended effect of commit 06eae9e. That could be a good thing. Something else I'm curious about is datfrozenxid, i.e., whether prioritization keeps the database (M)XID ages lower. -- nathan