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 1w7c9e-005Wlo-13 for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Mar 2026 16:41:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w7c9b-00BQxm-25 for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Mar 2026 16:41:24 +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.96) (envelope-from ) id 1w7c9b-00BQxb-0z for pgsql-hackers@lists.postgresql.org; Tue, 31 Mar 2026 16:41:23 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w7c9Z-00000001zsu-3z5W for pgsql-hackers@postgresql.org; Tue, 31 Mar 2026 16:41:22 +0000 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-6634bb959a2so7224256a12.1 for ; Tue, 31 Mar 2026 09:41:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774975280; cv=none; d=google.com; s=arc-20240605; b=TVx0b1mQSMZ/DaN+XtD2dEzsScMgYsI8pSt9BI02Hc+3lh2jr1Uq5q2n2IJ7CuarBG XebVvtvrCCF8sjp3g6YTfTIG3zBZmTk6CC4ZWEIuTLc3tDCSXq7+RSgJA6E/cCLkHadm UirbNLM00swRVKnfAIuo9KMB7Gp6xMdWQjzQWU5Po4qUx2JNPap9fsBAlyT6XJQZSH8/ jnkfOzJjA8u1RB5cBzhGYyoVVrY6bSAoJiBWlHas/GUt3k4YcHgMayLw2f6B74MvA4qX Tn0fQJ6+TxvBgbjygHEC5tCSInPkuEW+63m2XvdJFE/C9JXG2G2na2pd1u4a+1rE0oGH pOig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=vDT/WJbWvx8qgPqRqnU3LYzU7aoqrVWlxvISgmSs2bg=; fh=UtpIC0oMoMkNDRgNhOs9K6pY8S0O19L1cjwDaWee+yY=; b=NMu6dx6lsKnWukUZqL9PySoORkuut+UhBFIQg8kqXzSLH5Y8T4vaNcmoKwkmUiHD+s pktaMT0fSPu7q/xRvDB1soyf76/8CU0CkAnp5SooOuqSTEbxbi7/mH9LO74Dlqis5GBy jqsJKk+JPTATPxrW2uHoRzknuPiqAXmslVGQt/iT6CtM3iE00BzS5nnSUtUAcyxqFz1c XcWSJ8HYJ3HUgywATvy+PH+vOmT7sC2g4xQQpm/eHnP35yG6pFM8p9nBwA2WULuGIbPJ I/Te6yFe9T2iWu8oNQ2L05FJEi8o7UI55jOMLSyQNKkXxkmvzGZDiORNqtNj+vBV6Z6m Qf0g==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774975280; x=1775580080; 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=vDT/WJbWvx8qgPqRqnU3LYzU7aoqrVWlxvISgmSs2bg=; b=mK/+/5ubfDnngf9QyLU2aCA090X08dIjtVbWqC/CobLD9Zo5BpNytRzglFyI/K6UD6 2iaTQxSE6NAQU5H+U28w9HyJklGZqGftUUWK/4/lWqMwIJSPbtUZMy8J/bjlTatLs1vh 6TpaXlPW1u53qx2exb385+UXaczCAxp9RIjq492azSIVBaidG3R8HjVHkHoexO68sbJ2 KLSfYb7Vtvs52t90Vy5TF00jjuoB3mMHdznzvFsafqp3D1amrkVQhyJPfPZVweSgeOVL Vl091W4mMEpGVe9OhpLSQaNESOgvh7cWwJxw+vhpwpXk2NWhxzIhheaXXfHOi+6kAD/s oGCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774975280; x=1775580080; 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=vDT/WJbWvx8qgPqRqnU3LYzU7aoqrVWlxvISgmSs2bg=; b=StJoe+dUDQMgF8jX+7lheAn4OisySj2ZQuVPi26GIcPvbdhws92Q3bINvIg7dhsrBy dM/OUDb6vVShqemuwcpsMiuUGAeLI63d42A+Z9/BZiO3SjW06CHJmy59nyhRc79c27fi 7aAbY+mIE9fbxPj78KyL8FhdwEzBFH1OEHw7KZPM1UyKUgib6UtsggNTQWoXbB0o2wdF oaThorJNi8ztJLkoz833exa5Sk1tw168gmcvQpcccb0b9l+n9s3QG0iYlXiiQG8dhMXO +BMcPVEygBuzvrAQxIsGuequyEi71/I8RfPDdSKnTyzE9kAA2lIKJIVG+BtpvTSpm2BR q38g== X-Forwarded-Encrypted: i=1; AJvYcCUJ4UGn2j+A3Ox7UNu72SqqLB2GnsJDM4GNTcv5Sr6Anx3sIbaiv8WGHI0wEYpV+BUEA1VKwvstBxN+xy2j@postgresql.org X-Gm-Message-State: AOJu0YwqR12UHltAIhwd4GNKce2STfPSFRi2WkkL+Jts8PlSZCMAEFgr eShgQvyIlHKTbf0Rd/cUb5enPh/Ucz1Ilktjjd85lxZeWbu4OrMNl6vcSWFATaX1UWzH27l6HJ5 JdjUXCWIldbXGXKncuhQGMO26vchLIeY= X-Gm-Gg: ATEYQzz1eC1jZwnT6m0T8L16/L9Ca5gXonImuaoFHMq0TQFpuqRzibOgTZBx/poNP86 qoOYyxuS+rhT+HKOerutvALlUa8cGNCuU2HTI76XF0tfFBDREktwdMsKgn3FLXLQiC76MgFFNli noazAoc8RxrDcpsVfe4KZGU3KohnS9KCTuUKlhI5WImf8MmkNlgb66WDlOmX9zPK3x3udjZisIh 9ZCPwIGQvhPBaIGDIRZ2HprObDb3YgXJx9jyAeYrDWJmAk4W+IxGCYANV2XtIigKeczBsMYClYg 5vNkRw== X-Received: by 2002:a05:6402:51cf:b0:66b:d31e:e82f with SMTP id 4fb4d7f45d1cf-66db9f09425mr133005a12.28.1774975280395; Tue, 31 Mar 2026 09:41:20 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sami Imseih Date: Tue, 31 Mar 2026 11:41:08 -0500 X-Gm-Features: AQROBzAtsorWVM286flLe_TZ8dq165u23WajKJiw2-86IvyluvSwfjrPU40cehs Message-ID: Subject: Re: Add pg_stat_autovacuum_priority To: Nathan Bossart Cc: Robert Treat , Bharath Rupireddy , satyanarlapuram@gmail.com, pgsql-hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > >> I also see that we're not forcing the computation of the (M)XID > >> scores. Is that intentional? > > > > hmm, the force_score does not need to be in the force_vacuum path > > because the score is calculated there naturally when the table is in > > need of force_vacuum. The force_score is there to ensure that > > we are not existing early in the autovacuum disabled case. > > So, unless the table is beyond a freeze-max-age parameter, the (M)XID > scores will always be 0.0? You're right after thinking about this again. There is no reason why we should treat the force_vacuum case differently. The score should still be included so someone monitoring can see the xid|mxid_age climbing well before it becomes an issue. -- Sami