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.94.2) (envelope-from ) id 1u9Pfq-001Vmk-9p for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Apr 2025 14:41:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1u9Pfn-001OcI-LQ for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Apr 2025 14:41:32 +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.94.2) (envelope-from ) id 1u9Pfn-001OcA-Aa for pgsql-hackers@lists.postgresql.org; Mon, 28 Apr 2025 14:41:32 +0000 Received: from mail-io1-xd2c.google.com ([2607:f8b0:4864:20::d2c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u9Pfm-0001Cm-19 for pgsql-hackers@lists.postgresql.org; Mon, 28 Apr 2025 14:41:31 +0000 Received: by mail-io1-xd2c.google.com with SMTP id ca18e2360f4ac-85e751cffbeso454130039f.0 for ; Mon, 28 Apr 2025 07:41:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745851289; x=1746456089; darn=lists.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=h9/POJe7t8M065nDklSnYugnv/2zWfbsOet5ECiAPkc=; b=fCB8HQOPaCU5mTYEdS8Jggq1w/DC3Etzhzjob83wChZYCqg8f3/mWqHKRUgRm5efpW snZwRjMYza1FQZ0cxKYRBR3smAbgQ9GB1qnaVakf9b0WcOkxdsB9ymKhJYNYZBaczwZe 2u9A+paqfXMwCSZEoJUELxOpKDtXfUWA/Eyl506Kr7jhNWCib0Q8ttaa24W+FL31AT4Z KOdPskWJ3bOWiA6VSHxPtgKLfnTN9bD9Ryt0tnUBbmlTnOo3Rf6ZVFGFkQ2iT51u4UWT P5Zj2TUyZBXgSaOpc8Wrk/pQpxGq4PUTBpxj60KBFlvdk/mJYlmKaQnKlX5sN8TWZj3V uCwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745851289; x=1746456089; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=h9/POJe7t8M065nDklSnYugnv/2zWfbsOet5ECiAPkc=; b=ETazSXaU0/p42b7TcaQ4+hjtyiyL7KCaMRfh4harSIFXFywyuLxM3tqzJYWV4dP01a tEkUJCXVwLmRMYy+wi400pINJ6ys9lmsYhrkQYX9yAYqaUa5tR5H1xzenN3X74Vf1faC 2Wtdfw6SIeqvWICOaWSSY81GpDhqCUiU0TM5tLu9p4tOESDVlQd3eioHWy32oH/X8yJW MQLrxKm1hvclcKiZcFb4A9mUKDYmwsriVn0DIfi746Jq943jVFj884QaA/39tqKzF+Xh TDcIJ6GK8MDUl9KiCrXHepTxWbOu8avisu6x5M3LL3rVIq3M2L3dsulnJuquyv7pdiG9 lXJA== X-Forwarded-Encrypted: i=1; AJvYcCVsg1JR6I+SJ3u/4CFJQJvMa0Cy3H0nZ5M6tvMsKF887ZCMkDRac78Z32At87nY5ibD70sB7+0EWSHwwVk5@lists.postgresql.org X-Gm-Message-State: AOJu0YzUZMppU/f7+5FUtSO8wGnFT///TkWMvbOUReBuh2MM5Gdsr3kP TcyB1h4SVzOht2bFXqeoxrNltfkGMrXz35JAYQ7p2pe88ct9WmVv X-Gm-Gg: ASbGnctHoFP9CVbI0qATEtiC5SrqWJ4T5ki9/GxbTBzerrEHrN7BJwVTWRzSvOryHOj CmdKDHqRxSXwus2z6zX3jLE8jkthPMj/jNlqQJu4WF7a/xQQbOSYoEHI8apELwq6DnWPu6T1nmR p6T5UmB6imvvJzkBqElWnAtdEI5YY1rch03Q6EXddTil+r6OHR53EO/P4Skw1VOtrq0ifB0Cg3u mt0n55kAfWwdrsG9u29sk6RkaTNVhE9Tue69j3QKBSB9WLKSSEp9z2RA8q4soPEk+HiWi84HDwr SRgWI+ZprIH9SB5+zMGdL1lHrD3B9pOCnpipficL11jxKl4qAQ0mJzneGDUpgoaK9gR7Np3Rd6d KsO3w7QVyONGKJ4xM1U+HiO5lfgbrr+w= X-Google-Smtp-Source: AGHT+IGOuWe7DJpICPAkURCQBmVFIE+HqIgaSPh9jKNsy46a9qSZdFFc8vOasPlNEHIu4m6DxgoD4Q== X-Received: by 2002:a05:6e02:1fcb:b0:3d8:1f87:9431 with SMTP id e9e14a558f8ab-3d942d80840mr109416385ab.12.1745851289004; Mon, 28 Apr 2025 07:41:29 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4f824bc4fd4sm2195254173.142.2025.04.28.07.41.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Apr 2025 07:41:28 -0700 (PDT) Date: Mon, 28 Apr 2025 09:41:26 -0500 From: Nathan Bossart To: Tom Lane Cc: Peter Eisentraut , Andres Freund , pgsql-hackers@lists.postgresql.org, "Imseih (AWS), Sami" , Justin Pryzby , "pgsql-hackers@postgresql.org" Subject: Re: allow changing autovacuum_max_workers without restarting Message-ID: References: <7B8590B5-3A23-4CF6-B21D-4AA8C0177C2C@anarazel.de> <1353350.1736202977@sss.pgh.pa.us> <1359669.1736206603@sss.pgh.pa.us> <1386858.1736220547@sss.pgh.pa.us> <713236.1745846094@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <713236.1745846094@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Apr 28, 2025 at 09:14:54AM -0400, Tom Lane wrote: > Peter Eisentraut writes: >> This initdb output seems, well, kinda fake, which it is by its own >> admission. > > Agreed. > >> Could we do this less fake maybe like this: >> selecting default "max_connections", "autovacuum_worker_slots" ... 100, 16 >> with the actual wait at the "..."? > > Perhaps that would be all right ... > >> (It doesn't seem impossible that someone will want to add more default >> selecting for various worker or process slots, and this would allow adding >> these easily, versus adding more "fake" output lines.) > > ... but I can't see this approach scaling to three or four or five > outputs. The line would get unreasonably long. > > My own proposal given the way it works now is to just print > max_connections and not mention autovacuum_worker_slots at all. > Our choice for max_connections is worth reporting, but I don't > feel that everything derived from it needs to be reported. I'm fine with either of these ideas. If I had to choose one, I'd just remove the autovacuum_worker_slots report for the reasons Tom noted. However, weren't we considering reverting some of this stuff [0]? I see that sawshark is now choosing max_connections = 40 and autovacuum_worker_slots = 6, and since there are no other apparent related buildfarm failures, I'm assuming that nobody else is testing the 60 semaphores case anymore. [0] https://postgr.es/m/618497.1742347456%40sss.pgh.pa.us -- nathan