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 1w92z2-00192z-0K for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Apr 2026 15:32:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w92z0-00H1KI-1t for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Apr 2026 15:32:23 +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 1w92z0-00H1K9-0w for pgsql-hackers@lists.postgresql.org; Sat, 04 Apr 2026 15:32:22 +0000 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w92yy-00000000Zvx-0tMr for pgsql-hackers@postgresql.org; Sat, 04 Apr 2026 15:32:22 +0000 Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-66e56756044so2248073a12.2 for ; Sat, 04 Apr 2026 08:32:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775316739; cv=none; d=google.com; s=arc-20240605; b=ZcJD7GHWdVQD4azqPaU9HirZsPQOyXfsEWD02Y23+OWU0+ALVvNmBQbgrMQXP1KrQx 84X0fnoDYyzryUqBbWOvvprEeWFcdGDR678g5PBoFBVugeDbGP0XdgPAUVIXz8StUf4M VDfMvi3bfZVPkHmiP5hBKb/6xjZGS+wxwo89l9dNeRk+HkaM9BoNJRLETabjf2ulpstv ILQ6hsHnnnZcpQB/xqpE9WUqH5Bki2gHNd9yqpQtOzDkEk7HN3sg/OKvw0xNq9DoFZbl FYBNrEQI3NVQPOv36bV9IheJjRlgfHK10u1oP/8aK1btH2J/pJ6YcHLpD+eS2sY2SjWH q4Nw== 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=AowrC2eOrJN/RQWLBHmccmUZJ1t32MbgbTMB4yABnfk=; fh=glKopi3taNuXwoC11FylhNr5RTaJrDh3Ob328vm8Sbw=; b=Z7PC746gZLauQXG2nLuKKo+qeClqElLFzSDdQj1AKMhLEF5zgVcNJUu7WJFFsOnL5w bq7bHBT4gDGzQhQefOIVn7nXmmL8PtladCg+LlcPqxFMN6EOYLvkm6wAx/MK0WtKx7bz ldt10HTu+Qy94LuzGrITzLcb291TccanW7a0FF4vl1svHRTYAz9KbmZKVRB37Yt6o23V /TitBXLwVy+/9OIgnTIgNbkjWghez0+oXtJurZvLy3MxuBIyylS3Co/uKLBVSRdkxeMl mP101NgSpf1yD2JJE2FIy5jUssENVzL/1q3jMHwTYNG9nHIfHNsWnfykWEqdnNMlSSpQ W4eQ==; 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=1775316739; x=1775921539; 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=AowrC2eOrJN/RQWLBHmccmUZJ1t32MbgbTMB4yABnfk=; b=o+BP3mx8nF2tQDnA2qTWs0X7ejTKAc0XMAayxgZyfEbFKhUliCeVWh9ZogHffv8tB9 t3QcuQGv7IFRyi1hkuNAqykxRzZFt33nw6+T+/ZQVa1T7iM1d9NQzcABeiwJ6YcYRx9C sRqVTx9mVSmUreFVp+dV0h9vLMMpbPsgFqi5zp1eq59k6w5lVcgDkKk8mGbs3Mkqosuf HRrKcI2b4IVl54by9NZLafWCAhXspvc+qtmHVhh7mBHl+m/6YkDHvddicVxalttxdTNr wCrWPRQqW0uBBZHM1Q5IqwZabp7D0DIooP59LFvM2c/1ebTrNi1+3V5sXXKfYvnYXmWZ xFAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775316739; x=1775921539; 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=AowrC2eOrJN/RQWLBHmccmUZJ1t32MbgbTMB4yABnfk=; b=Jk0aBRs6tZRBmLG+pTMmOUjK+EtxZULw6pXRrCz/1SMUX8cYqI04SBkqT0CNBGyUA8 m7JQreG6uFdUkjyWg+IaSZIkQoPjXJB0MVrORuHN9UC4gpaIGsNWSZv9vq3tVTE4DJsk 3bbr1vyY3ZsElJ083VxP5TUBaHcYGbnzufHvgpQpUdbf6o/KQ4IyiflNWD9mInz5TYUd 0d1hPck5RDpnU3c7kKAys005Sd7Fd3sAcNwu2lqk5zNw1Kthoh2glRnGeKPgsJ0KtdNL vjTzc3lnF94aamxrodqxUGZ9DcQlhMOjA07igC/Wt0V7attENzqph0qOj/syPq0vbRMO Uz1A== X-Forwarded-Encrypted: i=1; AJvYcCXFj42AnMX9734MDAmkKCCmw2HThA4TmaEuPiuWKMLwhK5lV3KPjisab4XIrpQ2Z8jSuskdd1hcwG98eEtz@postgresql.org X-Gm-Message-State: AOJu0YwplXapwrJTvvEDuwGyxHuW5tPRSyYIctXnaB4rZDoTc1X+M7mx 4bwHvOJV90mcE8Zt3SowgHAGJwkJ1b4504tH4ADG9Qyj0kKSqG52sfuaCN7Tubl/NtPm0YVhvgP VQNzZl4GjRPqXX7Iu7Bq05thlWwgOiyQ= X-Gm-Gg: AeBDieuDJZ1T9WN6BBswF6zSxhf4aHoTTECJVdCB/hFgUfSXr0FpjMXAH4xiRlTr1cE WqXdJo3jWH6qWtk8IBA5VSe/UnZrg49jd1WzVr53FYnL/Vips5u8VvxiBnP8Ty5r8eau13ITN3q Gt9Tc+L3mokw9hgiAJRALEvv1zlnpu6DDLtWT8R/LzXQg5oHIgFiX9J+0Hdf3Lh/BrrT92hu43o jckq0v5F4Fnq5rnPkxnn0ekwL3DkvpX/FdhlciQaw3oMrYzVY997YPNmD54B/Gv7j1LQ61/69L0 PD8VuYFObyh9j+NI X-Received: by 2002:a05:6402:4302:b0:66e:6573:265b with SMTP id 4fb4d7f45d1cf-66e6573290cmr2337760a12.16.1775316738832; Sat, 04 Apr 2026 08:32:18 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sami Imseih Date: Sat, 4 Apr 2026 10:32:07 -0500 X-Gm-Features: AQROBzAi_5_D5iGulEcyCUOvwTcYK-aj8gj9CX17bYeSz6C_feqnkMyT8hkQ3LA Message-ID: Subject: Re: Add pg_stat_autovacuum_priority To: Nathan Bossart Cc: Bharath Rupireddy , Robert Treat , 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 > On Sat, Apr 04, 2026 at 08:25:26AM -0500, Sami Imseih wrote: > > "Scores greater than or equal to 1.0" in the comments > > of each field are misleading. This conflates scoring with vacuum/analyze > > eligibility and it's possible with a autovacuum_*_weight < 1.0 to trigger an > > autovacuum/analyze. > > Ah, that's unfortunate. I think it'd be good to give folks some idea of > what autovacuum will actually process. I wonder if we could adjust the > documentation accordingly. That's why I thought having the bool fields made sense in the earlier versions of the view. Since autovacuum is dealing with 2 concepts: eligibility: is av enabled and is the table meeting thresholds score: The priority of how the eligible tables will be processed. So, while this could be explained in docs, I think it's better we report these fields. We might as well just call the view pg_stat_autovacuum in that case. What do you think? -- Sami