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 1s2hLk-005Ewb-Lj for pgsql-hackers@arkaria.postgresql.org; Fri, 03 May 2024 01:04:32 +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 1s2hLg-004nVl-73 for pgsql-hackers@arkaria.postgresql.org; Fri, 03 May 2024 01:04:29 +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 1s2hLf-004nVd-Rt for pgsql-hackers@lists.postgresql.org; Fri, 03 May 2024 01:04:28 +0000 Received: from mail-il1-x131.google.com ([2607:f8b0:4864:20::131]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1s2hLa-001A8b-0t for pgsql-hackers@postgresql.org; Fri, 03 May 2024 01:04:27 +0000 Received: by mail-il1-x131.google.com with SMTP id e9e14a558f8ab-36c703d13e6so6391505ab.3 for ; Thu, 02 May 2024 18:04:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714698261; x=1715303061; 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=wui9XM11yjkU763iihqkF2g7kjl//iJp0FVe6MST27I=; b=D52qG0d+2qQnDnPnsu+K39/2bomnCavb4FD2xpX2ZxefXqWuFBIB6gDfid1V5+WaPd 3sG5js8kSY3DjbL3soMhqgsV1KiD6u9nwTflUAcDPdY/TVHliyr0hI9Nsgt0n1YopuBp bP4+1pHzr5BFdZzV837K4lwD1wKummHdwKC2J22mq5E2CIqoHZgmGFHXUqYKXWKiUJFb fKwVeDUtPrtx/m3lrjR0hYvXqsz5tQCIS/BvCXpI2l1eaEBrZsSQPNIl3rVhoViniTYc hSR4g5fR76k3G65p99JdD2Qbm3ft7E89ISSF/4LC+1rbOOjX3A518kW7v0E+T792Dxjk poiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714698261; x=1715303061; 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=wui9XM11yjkU763iihqkF2g7kjl//iJp0FVe6MST27I=; b=vEx2H0fMNSB+K/QVqZCDhdY1a5QgAsNdWcf4qxNKdOiNz7v94rG0HJTQ7gV0URcbf7 2S/1GH6w/9KtbxObcSCAODIRkwtlnuHiprH9D8fRg20xqnZr9cWS04/NPd0mo8TI+eyW p/6nTOXpPGQiI+nU1PDiHTVxPwBmvlh8b2Pp40yNMpleg2fbby/p/3ZOvt9VBrgj4a6n mevYKhFSAXMD3ktrsMFIHy4g8+sUJ2VnGZzoHlQTsvlC8jVt5ryokQW2l4VEgKClm/LD bE/U0ekAnE3395RhS5+QB43HcbtBrslmF1jPib0jl9waB1O0TMsIi7vvj/tWa7dd7wik u+Wg== X-Forwarded-Encrypted: i=1; AJvYcCV3CQFqKWrIj66uDZJqjqqM1Y8Z37gDSckP0vyh67K0Rcw9wmuoqsc2icdWBoFApNDRYNDKn9umKSDwD2coshqoUZOzALwoygnD36PC X-Gm-Message-State: AOJu0YxGul4MhepU4bYmabIXdAJYscSzt4B/ZdtDnQIhZTymonf+759J rx0c8a7syESiXjkeiwbs/BPkCybHWQClPtuDiQffcfcWkQ8WIcQs X-Google-Smtp-Source: AGHT+IFyy2O2E2EKiO7ptPXfWSnABSL5/1ANQD5Q/jWRDRCsWcVbizpEJAHeqWeZqMSHRpzmAErf+A== X-Received: by 2002:a05:6e02:1687:b0:36a:fa1f:b571 with SMTP id f7-20020a056e02168700b0036afa1fb571mr1751226ila.2.1714698259847; Thu, 02 May 2024 18:04:19 -0700 (PDT) Received: from nathanxps13 (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id g11-20020a056e02198b00b0036c3af385a7sm444280ilf.47.2024.05.02.18.04.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 18:04:19 -0700 (PDT) Date: Thu, 2 May 2024 20:04:15 -0500 From: Nathan Bossart To: "Imseih (AWS), Sami" Cc: Justin Pryzby , "pgsql-hackers@postgresql.org" Subject: Re: allow changing autovacuum_max_workers without restarting Message-ID: <20240503010415.GA1008894@nathanxps13> References: <20240410212344.GA1824549@nathanxps13> <20240415162833.GA2857238@nathanxps13> <20240415163749.GA2858464@nathanxps13> <96B4FC7B-A919-4F93-80A3-BA3EA4F8479A@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <96B4FC7B-A919-4F93-80A3-BA3EA4F8479A@amazon.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Apr 15, 2024 at 05:41:04PM +0000, Imseih (AWS), Sami wrote: >> Another option could be to just remove the restart-only GUC and hard-code >> the upper limit of autovacuum_max_workers to 64 or 128 or something. While >> that would simplify matters, I suspect it would be hard to choose an >> appropriate limit that won't quickly become outdated. > > Hardcoded values are usually hard to deal with because they are hidden either > In code or in docs. That's true, but using a hard-coded limit means we no longer need to add a new GUC. Always allocating, say, 256 slots might require a few additional kilobytes of shared memory, most of which will go unused, but that seems unlikely to be a problem for the systems that will run Postgres v18. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com