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 1w8qw3-000waG-1x for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Apr 2026 02:40:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w8qw0-00F6EJ-2E for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Apr 2026 02:40:29 +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 1w8qw0-00F6EB-19 for pgsql-hackers@lists.postgresql.org; Sat, 04 Apr 2026 02:40:28 +0000 Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w8qvy-00000000U74-16rA for pgsql-hackers@postgresql.org; Sat, 04 Apr 2026 02:40:28 +0000 Received: by mail-oi1-x22a.google.com with SMTP id 5614622812f47-47018d3416aso331794b6e.3 for ; Fri, 03 Apr 2026 19:40:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775270425; x=1775875225; darn=postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=+BV7CYdxos5nqGarw9fj+ow9dVjNiYiiJwDmen1vKFs=; b=mEFiaMmuu5/h3YpU5Ncr/LbIpM066E3JxuUwfGoQtW77lsC9CLAM3WE+eNVKOd4GER fPIJAIdRQiElUNRtV7x7Xf+69BpkXyqcEIVe+eoRGJUCnFyT1bF130HYqnaCXNdAaT3U 8tubvBE9xyaI0Khq9CAkPo/27AMhSnrfGYTxyQIc5VjJ1HQwitodAkeu0zbRm7zTx1z6 idHZRuNDXjdA+9yCy0n9RDFlPBqJl1SDFFVlUu9KMu+zXwGMizchC/hUePUlhnpzO094 7/m4VmXrAic5tMEEI8VOAdZpOmunPPB5OUG30ihdp8rJEU98m1tEtMi5ncG7JMDY5tds wKFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775270425; x=1775875225; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+BV7CYdxos5nqGarw9fj+ow9dVjNiYiiJwDmen1vKFs=; b=FxR5hIpsuw7pntw9pigYiE1M+7jqGdZq2wuxBfJH0aLlm0hWdPeYAhIlLcQMFPjp74 gGPlxwjSa6G4frefzCnlkOGH7BZx4vx1REdCYQ0BWiWct/q7FaQOqY5fhVAciIfdHyzY 2gBal/dUU8J3szLsAazDcYSnYNogjzPdNufKP4KLk4mkAFMDGip4WQaTvJjtBE5j9CTY KnjMWPq4Q9x46AW6/4ngvVMa4BI1HQe2bi6mvNWOqb55G2DYmjMDNjvMFdQomsHDZ9LJ wGoxy91vHYPxmAcOmXmpsZNXy4VEpuoW0JekpMZJsKUKyoILILyu/V0QEHZ6wuGg3FQY 8n5g== X-Forwarded-Encrypted: i=1; AJvYcCVuloWAYjaXJgYF8LRzhCy3tDJXKJ7Bdt01sd3pL+yEhAPnyeyDx8lAakZ5TVgps5guvm2jRyk8d7IEHvi9@postgresql.org X-Gm-Message-State: AOJu0YwlD0tez+j5fVXnzvplyT2bW5OA1T0LhdybmVe+RhN4HoKfdLkG p9XzuNGgn0UWZBC8uTdFQ8nL1v8bgrIJyQ6i3xjzGO0LUVNozj+52Dua X-Gm-Gg: ATEYQzzluCrNl/K+Z/D8kVaLhNPO822B1Pugsh4jYQVOKundmAGs59t66bAN1mJhN3c d9XoPUc3IKeP6H05ryHk+idiVAeSBRx/e14IaY7JgzWM131b4EjxD3QPgnV4ikFBtPYUan5QuvM 8PcprZSDlYaohVddxtFFO4hob06nqnZ5iW+RklSWv7Tcq7UIQxp9Ik9UdLqkPJumKwcRYr1yyts gH+BMmNTsqpT6IV96Ug7vLaqdSBqs5EgDtrd9K14cYLExIQQraUrXcsMUDo772gB4o18f772eay AKFOIBiIoNWPKglWyb9pv26vFXyOrb/d8YMfdUqmXaC2Il2ImQH7Mmp0dQbb/9MXkbz/YbtX+xP Cf8SHpdqSfp1uV9d8/ispZUK37b7WiimouoGrvSWi/Xnm+OGu5fpk0ucrfEellbPhE5Oxvm3Qri y//9wi1yWXPyP2Gs9NbhlroENxcwi6fjLfWgHlvsuD4lg6SomSiLLBGNH67M0iid3NruYfVDz6B eHxEdGIQh76kv1wvCSlfQ== X-Received: by 2002:a05:6808:bc2:b0:46a:7718:c519 with SMTP id 5614622812f47-46efb3de884mr2645635b6e.38.1775270424772; Fri, 03 Apr 2026 19:40:24 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-422eb3c9e06sm5456503fac.15.2026.04.03.19.40.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Apr 2026 19:40:23 -0700 (PDT) Date: Fri, 3 Apr 2026 21:40:21 -0500 From: Nathan Bossart To: Sami Imseih Cc: Bharath Rupireddy , Robert Treat , satyanarlapuram@gmail.com, pgsql-hackers Subject: Re: Add pg_stat_autovacuum_priority Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="VsQ7gtq8Z1iRN55c" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --VsQ7gtq8Z1iRN55c Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit I committed 0001-0003. Here is a new version of the last two patches. Some notes: * Instead of renaming recheck_relation_needs_vacanalyze(), I followed Álvaro's suggestion to remove that function and instead fetch the stats within relation_needs_vacanalyze() itself. * Per your feedback, I renamed the view back to pg_stat_autovacuum_scores. * Instead of limiting the view to pg_read_all_stats, I've left it accessible to all users. AFAICT there's nothing sensitive here. * I reworked the column descriptions a bit to make it clear that values >= 1.0 mean autovacuum will process it (except if autovacuum is disabled). WDYT? -- nathan --VsQ7gtq8Z1iRN55c Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=v9-0001-refactor-autovacuum-subroutine-in-preparation-for.patch