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 1w593g-002wUo-31 for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Mar 2026 21:13:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w593f-0091se-1E for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Mar 2026 21:13:03 +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 1w593f-0091sW-0O for pgsql-hackers@lists.postgresql.org; Tue, 24 Mar 2026 21:13:03 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w593d-00000000wiT-00Cx for pgsql-hackers@postgresql.org; Tue, 24 Mar 2026 21:13:03 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-66a4c6bb6ecso1637454a12.1 for ; Tue, 24 Mar 2026 14:13:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774386780; cv=none; d=google.com; s=arc-20240605; b=N3IRQJDjJNjbx8hlRk7cHmybLukxv1zko7/qCapKmm+GTM8q0d372Igsz6XzvPclVB tY7Abm4SRtVwhn+PJQ2ogJx4DzOl4OVpPS8HOZfVSII9c7M02o3lcwI1iHEEt8i+WE3k 8MKBbP1c1i9gwXJ49W5OMXc/cXg03DFEBNQ3dsvKhru/lSgwRZmp3KB8JQ6eyO3kDTYi T2opilrDDyph8lEWCoB1EQG9c7F/n7hweTTcxhPMrxs4RQJUzunn4/KmaTAaY3/8fNYK b7va6cmMuKxAdSAABR1yTOWAh7yMY3XcXNgH9EKm+EJKMdV59NTahd+TUl3e2layfQ9p ddXQ== 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=Bja3dbf4HTQx/qbuMBzzh8jxWKi3ZSCYneaFWvOlJKM=; fh=l4W0S5X/Zm+x5Qt/by/MSvJxFS5Ypw68Y38fxTn9RHk=; b=i92SSj+1cPZf1M8SOMV1CxenQigOT4/upMhU8MgMHACPsggr+6SqRQFSLflFpBbM4i VvS2TFDUUiHmEAq6XeyUJSvI6IW4G0hY13GMQ2Kp3VBsl3TWtd8wPZcCUMw4Of0G2eQA dQBo3RUWaxx0WxcsrsiRXZTrmDzzMuUjPVlNBjpUychx7c+mpYCfSkm6qBOuv84JH4c+ svVfE1uWZbx9gycV+1qlCLhpLRtb15/Z/06LoVTQND8JWqVo3PULWgOef98eyi/C6Knm c8mIKTgIPA/3B6TuLarsgXURbwoXNTqCq7KplFz9gdmGlzQ1+/vxbMo+J83T7RHOMoN1 xlxQ==; 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=1774386780; x=1774991580; 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=Bja3dbf4HTQx/qbuMBzzh8jxWKi3ZSCYneaFWvOlJKM=; b=RyWGCTGTZhXPkeWVU6So2prCdyaTZq8xoXNUUU4KU/c+4BYqebyV8Mqv0sd7K3FFVR IvWBbS+CQRGZkk0ATd/tZaSm0TvJCw3ufYvV7L1gerxLdFCuo0gL4d00zByzDMXTG+9a WorKgLZyxnUZdBmUddHyaH67gRrZ2XZerJB6qtHaZilAsL6p8In+fR5dX33gXSz48tCc HxkFyvAY7WGgfZWY8TXcemMgloAEKBTgNIUUrtjoEdnjg4wOalcQxqE4TG+8DdW6A47Y iGLDWbe8srpxqQMkaDI1G/RGa3MJq31yCLYHJJ+IanQrQHKnhjPLQD7OFwc6PMy/IB0l U3Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774386780; x=1774991580; 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=Bja3dbf4HTQx/qbuMBzzh8jxWKi3ZSCYneaFWvOlJKM=; b=mNz2Gz3mFgElvv7JquoWgpqE1rEsFTXR3DG0DjNVjQ0lavKKBZQGj0HftY7K4IbJs4 BbOyDDiX1Lfm9UGQzQun1eE6bd6cfzjRrzoIodpaQRGvsjjXHiq+2N4m/53/3nQjatxw Ilxt7LbINg4Olf4dBv0YBXZIUkmEAYyTDwYDChRVoGgzwd/9nD/1/o48we0F7amoGMXK et5Aq6IPu7f8Pb2nfzG8xXQreW9P43PUiXgzqs4qIWQ8U7KCuF7XwXzjrVheGWEVobHK ZbYSIb/nXt5YHzBocKGWt9slLGpgC/HxMwRKiqdrt3T10omZiAfOwtcNCDdPVq0SeaGu CgBA== X-Forwarded-Encrypted: i=1; AJvYcCWugO310k7UcwppDIPhbcajdWe1hleXtOqVBHDaNqJWAYODvVYqnpTzFxkwDm/Toi5EB6j/yIJVTpriTwqv@postgresql.org X-Gm-Message-State: AOJu0YzEu8jNGylWfSR7Mqkh2/M76mqxZ8uZ9ufz5QeaF/NlMLvX6uGR hWAqUG3gHtV35eMqu2bCqiso0xECvXOm3imJSHcKy7ZyuQ+6DTUCNHDLJplj7j3VextPYGZnDpE sIAaV7ZY9X0kK9iDzyBiZtPEFWYdJYr0= X-Gm-Gg: ATEYQzzNf5GBD7lWrJjq88g3AYCp5LLv7yTmEs59nzvFKualQq39h3cD77Fv8t/Q9sa hrRjAQ3orjv8QlHXIOACQDhDi/+LMzQVRTHSXMw2V8jOrtlDeC6FIx90xZxAMk+PUNJDJyszZDK FtR6IzoTnqcm7HEXEfSOFzwP9en47Pe6q8ULxQXdlJVyX57gVh0aG2JWM5Pv9tr0fOAGJ1EFCQ4 RrIbC4vdOTR0qQVakTsQRN2F6TWF2FMEXUnCPseg++oBPvznafNtBbCbFs326FRADnwacs6HwB5 08f+2g== X-Received: by 2002:a05:6402:278c:b0:66a:51ed:943 with SMTP id 4fb4d7f45d1cf-66a826ee3eemr566289a12.25.1774386780421; Tue, 24 Mar 2026 14:13:00 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sami Imseih Date: Tue, 24 Mar 2026 16:12:49 -0500 X-Gm-Features: AQROBzAk0x_WHcnvtHruZd-50dU5Wvd_aApPTCDJOn6IWt0X7Z3k_YQ2AX0osAM Message-ID: Subject: Re: another autovacuum scheduling thread To: Nathan Bossart Cc: David Rowley , Jim Nasby , Bharath Rupireddy , Greg Burd , Robert Haas , Robert Treat , Jeremy Schneider , 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 Tue, Mar 24, 2026 at 01:32:40PM +1300, David Rowley wrote: > > +1 for main patch first. I do think a view would be useful as a > > follow-up. However, which columns we put in that view might have some > > influence on how the current patch should look. I think the view > > should show the individual scores and the total score as the Max() of > > the individual scores. If we didn't do that, it might be confusing to > > the user which aspect of the score the final score is derived from. > > That might mean that it'd be better to have > > relation_needs_vacanalyze() output the scores individually, or perhaps > > populate a struct that we pass in that gets allocated on the stack > > during do_autovacuum(). That'd mean a bit less churn if we go with the > > view containing individual scores. > > Agreed. Here's a first try at that. I also updated the DEBUG3 at the end > of relation_needs_vacanalyze() to show the individual scores. The comment > above that function might need some work, and we might need a bit of > additional commentary elsewhere. This is good and these values could be exposed in the future view individually. I like this. v15 also LGTM. -- Sami