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 1vMtpw-005DtH-2y for pgsql-hackers@arkaria.postgresql.org; Sat, 22 Nov 2025 20:04:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vMtpv-00CUbG-1B for pgsql-hackers@arkaria.postgresql.org; Sat, 22 Nov 2025 20:03:59 +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 1vMtpv-00CUb8-0G for pgsql-hackers@lists.postgresql.org; Sat, 22 Nov 2025 20:03:59 +0000 Received: from mail-il1-x132.google.com ([2607:f8b0:4864:20::132]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vMtps-000ugh-38 for pgsql-hackers@postgresql.org; Sat, 22 Nov 2025 20:03:58 +0000 Received: by mail-il1-x132.google.com with SMTP id e9e14a558f8ab-4335726d0f2so10741225ab.1 for ; Sat, 22 Nov 2025 12:03:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763841837; x=1764446637; 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=Csd0YskkiLsMuytofMkUh09nMWKiKs/kefUS3cADR9s=; b=Gz6RL2ZehWFgOnVqjU4DJqKPelT4Zq0HKBGbg7oxMEziSogJ7y7ORgUjo2UFB150GV J7HiL5N8uKsiW917vAvrp9XCzUa4isxk0JKJhijS1OU+NffGjLFfNKb/vshZ/HsTiB+a OZLn7U+TdSK20J1o7WPRGvcSBeNADAY/yRMhM8mPtl3zlhfMtVOWcplcRWstOBQAJeBx JUwynbHFsK4G70nz5X0rPr1a5456VSBfeobmgFCzcOJOeOD+kiGZI3x+4y3x28wQ+vfC UPhgxTnHnrI9B+kqbzaU5E4QW9sQ0Ata+9ONKf19MupFVasSKPPK9piT49NBogvUUwPP zyFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763841837; x=1764446637; h=in-reply-to: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=Csd0YskkiLsMuytofMkUh09nMWKiKs/kefUS3cADR9s=; b=IznP8uwQJvPEwv3yvR5YNIuxxa5ykt+T52bnPqwqgp7uq2nPfZn5mgMeG/sVGZ7SyP i7ZvjlLdL8qzyn+SX76HNyhEfVm+qngURNmEhww1nN7ogyE0LHpfaoyNCGYsAGW/n3on sP3HogHuZhMDPJ8bIp1atueMe3EBaHfcLpEy9mohLEJAusg3Pio2NuKiABxK9vCudH/T 18rJLHai1dSG1lpaPZ0t9+hEsVdv5LkGLt+LYLsZ9qSoFVMtDaqRT42RQwvuau5YTjaW CVCPv0ev6/vCPmrqF/LThHjJAw77viWPC1wFGriCyxtELWuHfm6DCtvrene7p0r70K57 ZetQ== X-Forwarded-Encrypted: i=1; AJvYcCVd2Sf9E1IWM3rffDo4m/DUluf5TMtzvlts8uJI/WAldO8ywxHoWkxQvpcyGqDYQ4MWNvfWZNcaH0XlUKuO@postgresql.org X-Gm-Message-State: AOJu0YyfJBPVmBacmmjNyHg6VCiAheILQQlBhaK95beTL1c/GgBvImjh ZyAx37263OEqMYNZgnt/sB7C2jZE7UiOR9maNbJe+3SHc1mOCgSgzhlw X-Gm-Gg: ASbGncspecdtseGgyqYONMIxKYquLGeLEiCB3p3ye6Yia92u7pqzHSGbU5+nXIVqwOE v/LzROv5fEOAnKNThDiwgSmBDCeytOOHd10Hc4NjP5jj1ZGfqv1l16PjFGqsS9zJ6RCaIwq3u1Y 8djwwBHzNWWgYLM/fTxIvWR76yyRzk7k9iN/FqpdAnxsrY6u00yjdRZ6SAMZ4WiVX+GtZ2mQvwp 4ykS4RWqePHy/mZo0LGOWJcwPkXAvBInTZEVNBauVgs6hc/h44LHmv7YW30Yos2bNhs5NRozcZV lG4Aga76njrCkJ/k99EC4MmbrmYXc1Q+tszu4e+KmSbi0PAC4QF4bL2aRcXN5/qK9oi/R6cuqKX EyLZxyH4FxTIwhDbYS2csso7YPpMJLR9HpSdQJ/sJwSjZ1mRkfAD6cWNkTaTqaXbOzq+tdXHrTN Tlm+iYqnaflhE9yG6EgzCDtNViqDKx02Jyi4dZDADUsa57H5Ap+A+7mZUAy2JL+69DulSArBO/P Izi X-Google-Smtp-Source: AGHT+IGkqqtejuOBGQx80aqtDgRrI8t2nYoKoTtz1mD2+FfcTaoiuX0Ur1QT4r4x7TC4clWg8BBL3g== X-Received: by 2002:a05:6e02:18ca:b0:434:96ea:ff78 with SMTP id e9e14a558f8ab-435b8e91dfamr51606625ab.40.1763841836767; Sat, 22 Nov 2025 12:03:56 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-435a90c5adfsm38032745ab.22.2025.11.22.12.03.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Nov 2025 12:03:56 -0800 (PST) Date: Sat, 22 Nov 2025 14:03:54 -0600 From: Nathan Bossart To: Robert Haas Cc: David Rowley , Sami Imseih , Robert Treat , 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 Sat, Nov 22, 2025 at 06:28:13AM -0500, Robert Haas wrote: > What would be an issue is if we > regressed some kind of common pattern. I admit that's a bit > speculative and I'm probably being a little paranoid here: doing smart > things is typically better than doing dumb things, and what we're > doing right now is dumb. > > On the other hand, once we ship something, we can't pull it back. If > it causes a problem, someone will call me at 2am and need their system > fixed right now. If my answer is "well, there are no configuration > knobs we can change and no way to get back to the old behavior and I'm > sorry you're having that problem but the only answer is for you to run > all your VACUUMs manually until two years from now when maybe the > algorithm will have been improved," it's not going to be a very good > night. After 15 years at EDB, I've learned that the problem isn't > being wrong per se; it's having no way to get out from under being > wrong. Yeah. I'm tempted to code up the "weighting factor" GUCs for the next revision. As you've noted, those would be useful for tuning and for reverting back to pre-v19 behavior. Sure, we might end up with a handful of retail GUCs that most users don't need, but that's not so terrible. -- nathan